[Issue 12272] and(), or(), xor() to compose predicates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 28 19:50:27 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12272



--- Comment #6 from yebblies <yebblies at gmail.com> 2014-03-01 14:50:16 EST ---
(In reply to comment #5)
> (In reply to comment #4)
> 
> > I expect we will soon be able to do this:
> > 
> > alias two = s => s.startsWithJ && s.fourLetterLong;
> 
> I see no plans for this yet.
> 

The plans are in my head.  You can currently do this:

alias Alias(alias a) = a;
alias two = Alias!(s => s.startsWithJ && s.fourLetterLong);

So the limitation appears to just be syntactical.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list