Re: [BLACKBOX] BlackBox 1.6 final version - COMPLEX datatypes?

From: [at]} <Josef>
Date: Mon, 6 Jul 2009 15:02:36 +0200


Since BB is not using Coco, I cannot imagine
how to get Coco involved here.
I think it is a hand-coded transformation of the abstract syntax tree
that the BB compiler is building during parsing.
 
- JT
 
 

----- Original Message -----
From: Georgy <mailto:georgy.jikia{([at]})nowhere.xy
To: BLACKBOX{([at]})nowhere.xy
Sent: Monday, July 06, 2009 2:12 PM
Subject: Re: [BLACKBOX] BlackBox 1.6 final version - COMPLEX datatypes?

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

---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
Received on Mon Jul 06 2009 - 15:02:36 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:43 UTC