anonymus struct or class instances as arguments

Leopold Walkling leopold_walkling at web.de
Fri Dec 8 10:50:48 PST 2006


Yes that'Karen Lanrap schrieb:
> Lionello Lunesu wrote:
> 
>> Sounds like a job for tuples!
> 
> Those have to be programmed also ...
> And one is loosing the abstraction of an initialization.
> 
> Basically the OP seems to wish something like:
> 
>     funk({9});
> 
> i.e. struct literals with type deduction

Yes that's nearly what I'm thinking of, it already exists for static 
structs, but only with constants, and also you have to declare a 
variable first.
The solution with tuples wouldn't give me the possibility to use values 
in runtime.



More information about the Digitalmars-d mailing list