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.

Reply via email to