Can such a transformation be done using Coco, as suggested by Aubrey McIntosh?
On Mon, Jul 6, 2009 at 7:50 AM, Josef Templ <Josef.Templ{([at]})nowhere.xy
yes!
----- Original Message -----
From: Georgy Jikia <mailto:georgy.jikia{([at]})nowhere.xy
To: BLACKBOX{([at]})nowhere.xy
Sent: Sunday, July 05, 2009 5:54 PM
Subject: Re: [BLACKBOX] BlackBox 1.6 final version - COMPLEX datatypes?
Usually operator overloading would transform the expression like
z:=a+b*c;
in something like
z:=a.Add(b.Multiply(c));
If math operations are overloaded like
PROCEDURE "+" (IN x, y: COMPLEX; OUT z: COMPLEX);
z can be expressed as a sequence of two statements
"*"(b,c,tmp);
"+"(a,tmp,z);
And the compiler should be able to transform one statement like z:=a+b*c; in two statements as above internally. Is this what are you saying, Josef?
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
Received on Mon Jul 06 2009 - 14:12:40 UTC