Failing to understand the oddities of the "line" chunk

Peter M. Brigham, MD pmbrig at gmail.com
Tue Mar 20 10:37:19 EDT 2012


On Mar 20, 2012, at 10:00 AM, Klaus on-rev wrote:

> 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:

That's my point. The compiler should reject
   put "WHAT!!!???" into line 3 to 2 of tt
if it's not going to implement it in a way that is consistent with
   put "WHAT!!!???" into char 3 to 2 of tt

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list