Hi,
is it possible to make CINT recognize a '\' as a character that marks
a line continuation (e.g. as in a unix shell)? This would allow to
break long commands in script files into a more readable form, without
making it difficult to use copy and paste with the mouse.
I'm not sure if this behaviour would be C-standard compliant but at
least gcc doesn't worry about a '\' at the end of a line also if it's
outside a string.
example:
---
root [0] cerr << "hello\
!!!Bad command input. Ignored!!!
root [1] world";
!!!Bad command input. Ignored!!!
---
should be something something like this:
---
root [0] cerr << "hello\
> world";
---
but:
---
root [2] {
end with '}'> cerr << "hello\
end with '}'> world";
end with '}'> }
hello
world(class ostream)1082254080
---
Apart from the newline (which is not there in a compiled version) the
second version has the drawback that you can not use the commandline
history in a comfortable way, since it uses 4 lines in the history
instead of one (the same problem with multi-line commands is solved
in the 'bash' shell with the 'cmdhist' option).
Best regards
Volker
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET