[Issue 10485] can not distinguish method call in string mixin!
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 27 18:49:18 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10485
--- Comment #4 from changlon <changlon at gmail.com> 2013-06-27 18:49:17 PDT ---
Thanks for the quick response.
I will use that scope late, the struct wrapper will not work here.
I use this:
-----
string test(string name, alias T1)(){
string code = "scope " ~ name ~ " = new ubyte[ " ~ T1.stringof~ ".length
+ 1 ];\n" ;
code ~= data ~ "[$-1] = 0;\n" ;
return code ;
}
void main(strings args){
mixin( test!("var", args[0]) ) ;
capi_call(var.ptr);
}
----
I will create bug for scope mixin.
--
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