feature request: __ARGS__ for logging (cf __FILE__, __LINE__, __FUNC___)
Jacob Carlborg
doob at me.com
Mon Feb 4 23:26:39 PST 2013
On 2013-02-05 01:29, Timon Gehr wrote:
> Well, ideally something like
>
> ast.match{
> 2*(?a) => a+a,
> (?a)+2 => 2+a,
> (?e) => e,
> }
Could you please elaborate how that would be, what the semantics would
be. It doesn't look like any pattern matching I've seen in any other
languages.
For example, which value does it match on?
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list