Expression transformation by symbol name

Dominic Jones via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 8 06:20:24 PDT 2017


On Friday, 8 September 2017 at 13:15:51 UTC, Dominic Jones wrote:
> Where 'a' and 'b' are of the same type:
> 1. "transform(a * a)" returns an object to evaluate "2 * a"
> 2. "transform(a * b)" returns an object to evaluate "a * b"

1. "transform(a + a)" returns an object to evaluate "2 * a"
2. "transform(a + b)" returns an object to evaluate "a + b"



More information about the Digitalmars-d mailing list