From: Eric B. <er...@go...> - 2001-08-12 16:13:21
|
Christian Couder wrote: > > If what you say is true, perhaps it could still be possible to define > the meaning of "eof" depending both on the target platform and the > compiler. > So that for example eof would always be "%N" if SmallEiffel is used, and > it would be "%N" on Unix or "%R%N" on Windows if another compiler is > used. And then: > For example if you want to set a multi-line message in a message box, > you can use one of the following : > > 1) > > msg_box.set_msg(error_header + eol + error_msg + eol + help_msg) These two suggestions seem incompatible to be. Under Windows with some Eiffel compilers 'eol' will be %N just to make sure that %R%N (and not %R%R%N) is actually written to files, but then in your message box you really want 'eol' to be %R%N because you are now dealing with strings and not files anymore and the compilers do special treatments for %N only in files and standard files, not in strings. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |