Reverse a list
bobsneidar at iotecdigital.com
Mon Feb 9 20:38:02 CET 2015
As discussed in the past, there was probably a good reason to do it this way when HyperTalk was created, and since then it’s been maintained because of backward compatibility reasons. Changing this would likely break a lot of code. However other applications and dev systems would treat the last item or line as an empty one. SQL does (or will break the SQL for certain things). dBase does. Excel does. I am fairly certain that C++ and Java do. It’s one of the fairly numerous quirks of LC coding you get used to after stumbling on them from time to time.
> On Feb 9, 2015, at 11:29 , J. Landman Gay <jacque at hyperactivesw.com> wrote:
> On 2/9/2015 12:58 PM, Mike Bonner wrote:
>> "1,2,3,4," is 4 items (comma terminator as you said, acts as a terminator
>> to the preceeding) "1,2,3,4,5" is 5, so the trailing coma is implied.
> Yup, that's it.
More information about the use-livecode