[Issue 1100] Alias parameters don't accept primitive types.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 6 00:51:21 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1100
------- Comment #2 from reiner.pope at gmail.com 2007-04-06 02:51 -------
I would still argue that this is unintuitive behavior; to me an alias parameter
is anything that can be aliased. Allowing all types except primitive types in
alias parameters creates a seemingly arbitrary distinction between primitive
and user types -- don't we want to decrease these differences as much as
possible?
I can't think of any realistic use cases for primitive types as alias
parameters. However, I also can't for userland types.
PS. To be really pedantic, Int could be regarded as a symbol in the following:
alias int Int;
alias MyAlias!(Int) Int2; // MyAlias from before
// The above alias also doesn't work
--
More information about the Digitalmars-d-bugs
mailing list