Text files driving me mad

Kee Nethery kee at kagi.com
Thu Jun 13 11:05:01 EDT 2002


>On Thursday, June 13, 2002, at 10:56  AM, Ben Rubinstein wrote:
>
>>>>I found it slightly confusing that CR (return) and linefeed are
>>>>both ASCII 10,
>>>
>>>I find it irritating.
>>
>>This was the first message I posted when I bought MetaCard.  I was told that
>>SuperCard had introduced this error, and MetaCard was maintaining
>>compatibility.  I still think it's mad.
>
>It is insane, and has caused us to create a bunch of workarounds, 
>none of which are what we want to do. Unless I'm missing something 
>about the way the language "wants" to work, it is particularly 
>difficult to make sense of certain data streams coming in on a 
>serial port because of it.

I'm not using this capability right now but I might in the future. I 
have not tested to see whether returns are getting remapped to LF 
(Ascii 10) or not. But assuming this is true ... and if it is to 
maintain backward compatibility, I highly suggest the following fix.

Have the call keep returns at ascii 13 where they should be and only 
if someone does something like include a modifier like 
"returnToLinefeed" do you maintain backward compatibility with such 
an obvious flaw.

Again, I'm not using this functionality so it is not harming me at 
the moment but as someone who has maintained legacy code, make broken 
things be the exception and let new code expect correct data streams.

Kee Nethery



More information about the use-livecode mailing list