[Issue 7897] Problem with alias template parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 20 16:48:44 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7897
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> 2012-04-20 16:49:40 PDT ---
> AliasTheInt!( thing.x )(); // this is the problem
Right. It's a problem because thing.x is being passed as an *alias* parameter.
An alias must be symbol, not a computation on a symbol. thing.x is semantically
equivalent to:
*(&thing + x.offsetof)
which is not a symbol.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list