<div class="gmail_quote">On 25 January 2012 23:59, Adam Wilson <span dir="ltr"><<a href="mailto:flyboynw@gmail.com">flyboynw@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, 25 Jan 2012 13:35:38 -0800, Manu <<a href="mailto:turkeyman@gmail.com" target="_blank">turkeyman@gmail.com</a>> wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On 25 January 2012 21:47, bls <<a href="mailto:bizprac@orange.fr" target="_blank">bizprac@orange.fr</a>> wrote:<br>
<br>
</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 01/25/2012 07:03 AM, Manu wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is fairly interesting. MS have extended their C++ compiler<br>
significantly for Windows8 with a bunch of non-standard stuff.<br>
FINALLY implement garbage collection, ref counting, properties,<br>
delegates, events, generics, etc...<br>
If other compilers adopt this tech, D loses some advantages.<br>
<br>
</blockquote>
<br>
But you still have to fight with ifndef ,forward declaration, and a<br>
template syntax against common sense.  Even if you paint shit yellow it's<br>
not necessarily gold.<br>
<br>
</blockquote>
<br></div></div><div class="im">
True, but I think this will mitigate a lot of the motivation Windows devs<br>
have to seek another language if they're not developing cross platform apps.<br>
<br>
Sadly, since WinRT requires using these language extensions to interface<br>
with the new windows runtime, you won't be able to write a Windows8 app in<br>
D.<br>
Interestingly though, D supports almost everything they've added to C++. I<br>
wonder if it would be possible to do extern(Windows8) to produce a<br>
compatible ABI for linking with MS C++ apps?<br>
<br>
The most interesting features are 'ref new' and 'gcnew', which makes me<br>
wonder, since Windows8 has an OS garbage collector, would it be at all<br>
possible to have D use the Windows8 GC? I'd prefer this to using D's own GC<br>
if it would be supported, and obviously this would be a requirement if D<br>
was going to interact with WinRT properly.<br>
Also, WinRT uses 'ref new' to allocate ref counted (effectively COM to my<br>
understanding) objects. I think I read somewhere that D already has<br>
extern(COM) no? I wonder if Windows8 ref type linkage is already<br>
technically supported in D?<br>
</div></blockquote>
<br>
There is no Win8GC, it's all ref counted. WinRT is COM with extras and as such should be accessible to D. It would need some extra glue code over what we have now ... like the IInspectable interface.<br></blockquote>
<div><br></div><div>Really? So what's 'gcnew' for?</div></div>