On 2/13/12 7:46 AM, David Nadlinger wrote:
On 2/13/12 2:43 PM, Andrej Mitrovic wrote:
auto u = (a, b) => cast(ubyte)uniform(a, b);

Which would make 'u' a template. I'm not sure what the exact syntax
was that was requested though.

This could never work without major changes to the language, because 'u'
cannot be assigned a type.

David

alias (a, b) => cast(ubyte)uniform(a, b) u;

should work. This makes is a case where the discussed syntax "alias defined = definee;" would be helpful.

Andrei

Reply via email to