On 24 April 2012 10:08, Iain Buclaw <[email protected]> wrote: > On 24 April 2012 09:42, Alex Rønne Petersen <[email protected]> wrote: >> Writing portable code is hard enough as it is. Why do we have to have some >> random, D-specialized calling convention (only on Win32 and only in DMD)? >> The result of the current state of things is that extern(D) is essentially >> useless - it has completely different meanings across compilers. You cannot >> rely on it at all. If memory serves me right, both LDC and GDC just alias it >> to extern(C), but DMD insists on using this magical D calling convention on >> Win32. >> > > extern(System) would be a more accurate description of what GDC does, > as it uses the default calling convention for the target/platform you > are running on, which may not neccessarily be extern(C). >
s/ running on / compiling for / -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';
