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


Piotr Szturmaj <gacek...@tlen.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


--- Comment #4 from Piotr Szturmaj <gacek...@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: -------

Reply via email to