Inherent code performance advantages of D over C?

Manu turkeyman at gmail.com
Thu Dec 12 21:53:33 PST 2013


On 13 December 2013 15:39, Daniel Murphy <yebblies at nospamgmail.com> wrote:

> "Manu" <turkeyman at gmail.com> wrote in message
> news:mailman.513.1386905921.3242.digitalmars-d at puremagic.com...
> >
> > Which appears basically everywhere an asm block does. 'asm' could
> > optionally receive an architecture as argument, and lower to the version
> > wrapper:
> >
> > asm(x86)
> > {
> >  ...
> > }
> > else asm(ARM)
> > {
> >  ...
> > }
> >
> > (The 'else's in those examples seem unnecessary)
> >
>
> meh
>
> version(x86) asm
> {
> }
> else version(ARM) asm
> {
> }
> else
> ...
>

Haha, okay. Good point.
I never think of version statements like that for some reason.
Mental throwback to #define perhaps, which requires it's own line >_<
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131213/c2a39d6a/attachment.html>


More information about the Digitalmars-d mailing list