> Alternatively, just use a prefix: use constant C_NAME => 0;
In big projects I'd rather prefer a dedicated package instead of a prefix, in small ones collisions are unlikely.
Using the C'NAME syntax mightą make the notation even shorter and help giving a visual hint.
Cheers Rolf
1) at least I didn't get any complaints when compiling with strict and warnings.
In reply to Re^2: Named array indices
by LanX
in thread Named array indices
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |