Instantiating Templates Structs with defaults parameter

d coder dlang.coder at gmail.com
Thu Jun 9 08:04:18 PDT 2011


>
>
> I don't know whether this should compile but there is a simple work
> around:
>
> alias Foo!() Bar;
>
> and then
>
> Bar bar;
>
> works as expected.
> Does it help?
>
>
Actually it does not. Actually I am trying to create a DESL. For me this Foo
Bar stuff kind of becomes user interface.

Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110609/dc915465/attachment.html>


More information about the Digitalmars-d mailing list