[Issue 5357] mixin templates accept strings as struct name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 18 16:50:14 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5357
Piotr Szturmaj <gacek999 at tlen.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #4 from Piotr Szturmaj <gacek999 at tlen.pl> 2010-12-18 16:48:11 PST ---
> Dear god... stuff doesn't work this way AT ALL.
Oh, really?
> The name of the struct the mixin generates is "name", not whatever you passed
> as the parameter named "name".
string name is a value parameter, so it should be an error. It should not
generate struct 'name'.
> What makes you think the compiler automatically
> replaces identifier with the same name as the parameter by the parameter's
> value?
I don't think so! I was just experimenting with mixin templates.
> Also, learn to write clear error reports.
You better learn how to reason.
--
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