At 9:00 AM +1100 on 7/25/99, spierings wrote:
>res = qd.screenBits.bounds.left + "," + qd.screenBits.bounds.top ","
> + qd.screenBits.bounds.right + "," + qd.screenBits.bounds.bottom;
>
>/* res is now equal to "0,0,640,480" */
>
>You get it? What do you think?
I get it, and it's a bad idea. Consider:
OTVar CreateTextRect(int h1, int v1, int h2, int v2, const OTVar &delim) {
... (obvious using operator+ concatenation; see quoted text above)
}
CreateTextRect(0,0,640,480,",") => "0,0,640,480"
CreateTextRect(0,0,640,480,".") => "0.0.640.480"
CreateTextRect(0,0,640,480,";") => "0;0;640;480"
CreateTextRect(0,0,640,480,"0") => 1120
It's left as an excercise to the reader to figure out why.
>
>Andre.
>
>BTW, you need to declare
>class ExitToHyperCard {};
>in TokenizerTest.cp for it to compile.
This should be delcared in a header somewhere... TakeMeOutToTheBallGame.h,
I believe.
>I also had to comment out the line
>friend OTVar;
>in the Chunk class declaration.
Broken compiler. I'm pretty sure it's 100% legal.