Failing to understand the oddities of the "line" chunk

Klaus on-rev klaus at major.on-rev.com
Tue Mar 20 10:00:48 EDT 2012


Hi Peter,

Am 20.03.2012 um 14:40 schrieb Peter M. Brigham, MD:

> On Mar 20, 2012, at 1:52 AM, Geoff Canyon wrote:
> 
>> On Mon, Mar 19, 2012 at 12:54 PM, J. Landman Gay
>> <jacque at hyperactivesw.com>wrote:
>> 
> ...
> Jacque's point still holds, though -- the implementation of this form using lines instead of chars is *not* consistent.
> try this:
> 
> put "one,two,three" into t
> replace comma with cr in t
> put t into tt

> ##put "WHAT!!!???" into line 3 to 2 of tt
## Wrong ORDER of line range!

put "Waht!!!???" into line 2 to 3 of tt
## Will give the desired result:
...

one
two
three

one
WHAT!!!???

> ...
> The "WHAT" should appear at the start of line 3, or possibly should replace the cr at the end of line 2, depending on how you look at it.
> 
> I agree with you that this syntax should be blocked by the IDE at compile time if it's not going to be implemented properly at runtime. I'd call it a bug.
> 
> -- Peter
> 
> Peter M. Brigham

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com





More information about the use-livecode mailing list