[Issue 5357] mixin templates accept strings as struct name

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 18 16:40:31 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5357


nfxjfg at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |nfxjfg at gmail.com
         Resolution|                            |INVALID


--- Comment #3 from nfxjfg at gmail.com 2010-12-18 16:38:39 PST ---
Dear god... stuff doesn't work this way AT ALL.

The name of the struct the mixin generates is "name", not whatever you passed
as the parameter named "name". What makes you think the compiler automatically
replaces identifier with the same name as the parameter by the parameter's
value?

Also, learn to write clear error reports.

-- 
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