what is missing here?

Jonathan Villa via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 3 09:32:18 PDT 2016


On Tuesday, 3 May 2016 at 16:13:07 UTC, ag0aep6g wrote:
> On 03.05.2016 18:03, Jonathan Villa wrote:
>
> Types are not values. You cannot return a type from a function. 
> Use aliases instead:
> ----
>         alias user_id_t = typeof(dummy1);
>         alias name_t = typeof(dummy2);
>         /* ... etc ... */
> ----

Thank you, I thought alias was just allowed to be declared 
outside, but declaring them inside as public it now behaves like 
I want.


More information about the Digitalmars-d-learn mailing list