[Issue 8782] D lexer do not understand unicode char ⦠for variadic
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 8 04:50:24 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8782
--- Comment #1 from bioinfornatics <bioinfornatics at 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: -------
More information about the Digitalmars-d-bugs
mailing list