suggested improvements to D

Kirk McDonald kirklin.mcdonald at gmail.com
Mon Jan 8 18:16:01 PST 2007


Warren D Smith wrote:
> Here are some suggested improvements for D.
[snipped suggestions]

'swap' can easily be done with a function template:

void swap(T) (inout T a, inout T b) {
     T t = a;
     a = b;
     b = t;
}

The second example seems like a perfectly reasonable place to just use goto.

The other suggestions seem like precisely the kind of thing we have an 
inline assembler for.

-- 
Kirk McDonald
Pyd: Wrapping Python with D
http://pyd.dsource.org



More information about the Digitalmars-d mailing list