Aliases

Andrey Khropov andkhropov_nosp at m_mtu-net.ru
Sun Oct 22 10:28:15 PDT 2006


Reiner Pope wrote:

> What's the purpose of the restriction of alias in the specs -- 'Aliases
> cannot be used for expressions'; it prevents some useful things like this:
> 
>   int[2] nodes;
>   alias nodes[0] left;
>   alias nodes[1] right;

Looks kinda scary. It resembles me of C's textual macros which are somewhat
dangerous and may introduce hard to debug errors.

-- 
AKhropov



More information about the Digitalmars-d mailing list