http://d.puremagic.com/issues/show_bug.cgi?id=8782



--- Comment #1 from bioinfornatics <bioinfornat...@gmail.com> 2012-10-08 
04:32:24 PDT ---
(In reply to comment #0)
> D lexer do not understand unicode char … for variadic.
> 
> from some keayboard layout is faster to write … than ...
> ________________________________________
> 
> import std.stdio;
> import std.algorithm;
> import std.array;
> 
> void main( ){
>     immutable int[] a = [4, 6, 1, 2,];
>     immutable int[] b = cast(immutable) a.dup
>                 .sort!( (x,y) => x < y )
>                 .array;
>     writeln( b );
> }

oops bad paste sorry
________________________________________

import std.stdio;

void foo( int[] params … ){
    foreach( param; params )
        writeln( praram );
}

void main(){
    foo( 1, 2, 3, 4 );
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to