Handling of final delimter (was Re: "this me"?)

Devin Asay devin_asay at byu.edu
Mon Aug 12 13:30:29 EDT 2013


On Aug 12, 2013, at 10:51 AM, Mark Wieder wrote:

> Terry-
> 
> Sunday, August 11, 2013, 11:04:26 PM, Terry Judd wrote:
> 
>> Agreed - for practical purposes it's only 3 - although I still
>> can't get out of the habit of deleting the trailing delimiter from a
>> constructed list before processing it in a repeat loop.
> 
> I do too. And for that reason, neither of us would have code that
> would be affected by changing the way items and lines are counted. But
> there *is* other legacy code out there that does rely on the current
> behavior.


You know how I get rid of trailing delimiters?

  put line 1 to -1 of tList into tList

  put item 1 to -1 of tItems into tItems

Kills that dang dangling delimiter dead.

Devin


Devin Asay
Office of Digital Humanities
Brigham Young University





More information about the use-livecode mailing list