[Issue 1827] Uniform syntax for is(), static if, alias, template definition & static assert
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 8 06:24:03 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1827
Trass3r <mrmocool at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mrmocool at gmx.de
--- Comment #6 from Trass3r <mrmocool at gmx.de> 2011-04-08 06:20:17 PDT ---
(In reply to comment #1)
> > --- I wonder if you ever try to define something like this:
> >
> > void parse(T : T == char[] || T == wchar[] || T == dchar[])(T str) {
> > }
>
> You mean match a type if a Boolean condition is satisfied? Yes, I also felt a
> need for that.
Has this lead to template contraints?
> > or wonder why symbol T gets redefined into array element like below:
> > void parse(T : T[]) {}
>
> This is bar none the fugliest hack ever since eunuchs have been invented. I
> have argued many times with Walter to remove it, and probably de facto it will
> - none of the book's code samples will feature it.
Any updates?
--
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