Re: Characters that can be used in an array key

2012-04-30 Thread Richard Gaskin
Dar Scott wrote: > I doubt that anybody is to go say "my code broke" when this is > fixed. I understand the collection of odd stories, but LiveCode > is for everybody not just the priesthood. I think the issue here > is more than unicode; binary data applies. Agreed on all fronts. Would be ni

Re: Characters that can be used in an array key

2012-04-30 Thread Dar Scott
I doubt that anybody is to go say "my code broke" when this is fixed. I understand the collection of odd stories, but LiveCode is for everybody not just the priesthood. I think the issue here is more than unicode; binary data applies. Thank you for putting up with my mock crankiness. Dar

Re: Characters that can be used in an array key

2012-04-30 Thread Richard Gaskin
Dar Scott wrote: > I am not advocating doing away with arrays. I am advocating doing > them right. This "feature" (bug) should have been fixed before > arrayEncode() was created, immediately before if not well before. Back in the olden days when people still used Usenet, there was a lengthy t

Re: Characters that can be used in an array key

2012-04-30 Thread Dar Scott
On Apr 30, 2012, at 3:44 PM, Richard Gaskin wrote: > While worth revising at first opportunity, to date I don't recall it being > reported as an issue here or in the forums. I have brought this up every two or three years for a long time. Perhaps it is listed as an enhancement request.Per

Re: Characters that can be used in an array key

2012-04-30 Thread Richard Gaskin
Dar Scott wrote: > On Apr 30, 2012, at 9:54 AM, Richard Gaskin wrote: > >> While that article is still being finished, from what I've seen in >> Mark Waddingham's example code it seems that the only character we >> must avoid in array keys is NULL, since that's used internally as >> a delimiter b

Re: Characters that can be used in an array key

2012-04-30 Thread Dar Scott
On Apr 30, 2012, at 9:54 AM, Richard Gaskin wrote: > While that article is still being finished, from what I've seen in Mark > Waddingham's example code it seems that the only character we must avoid in > array keys is NULL, since that's used internally as a delimiter between the > key and the

Re: Characters that can be used in an array key

2012-04-30 Thread Dar Scott
On Apr 30, 2012, at 1:24 PM, Jerry Jensen wrote: > On Apr 30, 2012, at 8:54 AM, Richard Gaskin wrote: >> >> it seems that the only character we must avoid in array keys is NULL, since >> that's used internally as a delimiter between the key and the value. >> >> As far as I can tell, all other c

Re: Characters that can be used in an array key

2012-04-30 Thread Jerry Jensen
On Apr 30, 2012, at 8:54 AM, Richard Gaskin wrote: > > it seems that the only character we must avoid in array keys is NULL, since > that's used internally as a delimiter between the key and the value. > > As far as I can tell, all other characters are allowable. It would be fun to see how the

Re: Characters that can be used in an array key

2012-04-30 Thread Bob Sneidar
True enough. I have found however that if I operate on a set of basic principles, I develop habits which prevent problems later down the road. This is one of my principles, and it serves me well. I do not see any case where using special characters in an array key would give you an advantage ove

Re: Characters that can be used in an array key

2012-04-30 Thread Richard Gaskin
Bob Sneidar wrote: > Even you could use tabs in an array key, why would you want to? > I cannot think of an application for this. I would stick to the > same rules that SQL enforces for column names, and always use lower > case, as SQL is sometimes case sensitive. That way you never shoot > yours

Re: Characters that can be used in an array key

2012-04-30 Thread Bob Sneidar
Even you could use tabs in an array key, why would you want to? I cannot think of an application for this. I would stick to the same rules that SQL enforces for column names, and always use lower case, as SQL is sometimes case sensitive. That way you never shoot yourself in the foot if you ever

Re: Characters that can be used in an array key

2012-04-30 Thread Richard Gaskin
David Epstein wrote: Are there any limits on what characters can be used in an array key? For example, do tab characters cause problems? Many thanks. Earlier this month I mentioned having rec'd the definition for arrayEncoded data, at the bottom of this post:

Re: Characters that can be used in an array key

2012-04-29 Thread Dar Scott
On Apr 29, 2012, at 7:36 PM, David Epstein wrote: > Are there any limits on what characters can be used in an array key? For > example, do tab characters cause problems? NUL characters do funny things. Avoid those. A NUL is called null in LiveCode and is numToChar(0). The result of arithm

Re: Characters that can be used in an array key

2012-04-29 Thread Phil Davis
Hi David, I doubt tabs make trouble but don't really know. When I have a tab-delimited line I'm using as a key, I usually base64Encode it first. I would not use nulls in a key, but again I don't really know if it would cause problems. Best - Phil Davis On 4/29/12 6:36 PM, David Epstein w

Characters that can be used in an array key

2012-04-29 Thread David Epstein
Are there any limits on what characters can be used in an array key? For example, do tab characters cause problems? Many thanks. David Epstein ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscrib