[great-users] handling of 'end of line' in AttributeMapping textboxes

Tivadar Szemethy tiv at isis.vanderbilt.edu
Thu Mar 11 11:56:18 CST 2004


Hi,

This is just a 'feature report' FYI, if you ever happen to run into this.

End of line characters are converted into spaces when the text in  the AttribMapping textbox is converted into C++ code, and sometimes this can lead into unexpected results:
I know it's rather annoying than critical, but is there any way to prevent this behavior ?

1. If you use C++ style comments (you comment your code regularly, don't you ?):
X = Y + 2; // here X is calculated
... all the rest of your code becomes comment

Workaround: use /* */ style comments. 

2. If you use multiple-line string constants.
Workaround: you can't use multiple line string constants. Use \n and the like.


3. If you mistype and you get a compilation error on the GR file, in the unlucky case you have only a line number and a 10^6 long line with all your AttributeMapping text on it to read and find where the problem is.
Workaround: don't mistype or use several distinct Attr.Mapping boxes. I guess their execution order is not deterministic though :) .

Tivadar


More information about the great-users mailing list