Additional Binary Operators
Paul D. Anderson
nobody at hotmail.com
Fri Mar 1 18:56:41 PST 2013
On Saturday, 2 March 2013 at 00:31:20 UTC, Era Scarecrow wrote:
> On Friday, 1 March 2013 at 23:29:43 UTC, Paul D. Anderson wrote:
>>
>> My bottom line is the need to define at least one more product
>> operator. I only propose adding it to the core language
>> because I can't find a way to make it happen in a library. I
>> am open to suggestions.
>
> I'd say a DSL for the scientific library would be best, likely
> as a mixin, then the text could be processed and use it's own
> rules and replace symbols with function calls?
>
> //can mix regular operations and utf extras
> a = scientificCalc!"(s * 4) × 4"(s); //possible call
> formats?
> mixin(scientificCalc("a = (s * 4) × 4"));
That's just what I need. Thanks.
More information about the Digitalmars-d
mailing list