suggested improvements to D
Leandro Lucarella
llucarella at integratech.com.ar
Tue Jan 9 06:57:57 PST 2007
Kirk McDonald escribió:
> 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;
> }
This should be in phobos, if it's not allready.
--
Leandro Lucarella
Integratech S.A.
4571-5252
More information about the Digitalmars-d
mailing list