Inconsistent Behavior of Lists

MisterX b.xavier at
Wed Sep 15 12:52:17 EDT 2004


Seems to work normally. The space is taken into account as part of the item
which is correct and which appears before line 2 of fld 3.

Or, im wrong and the way words are handled in RR is incorect ;)

Word 2 of "this is, a string" -- since when is a comma part of a word in the
english language? Since transcript tries to be an english like programming
language, why doesn't it stick to the semantics of the language in its parsing?
If you do language translation, the word function is useless which is a pitty!
I've wasted hours on this one too assuming it wasn't possible that transcript be
so dum!!! I was wrong!

> -----Original Message-----
> From: use-revolution-bounces at
> [mailto:use-revolution-bounces at]On Behalf Of Dan Shafer
> Sent: Wednesday, September 15, 2004 18:15
> To: Revolution User List
> Subject: Inconsistent Behavior of Lists
> OK, I think I've uncovered an anomaly in the way Rev handles/parses
> list items that cost me about four hours of work last night. I want to
> confirm that: (a) I'm right; and (b) this is a bug before I go any
> further.
> Here's a recipe that demonstrates the anomaly. Create a card with three
> fields and a button. Put this script into the button:
> on mouseUp
>    put field 1 into list1
>    put field 2 into list2
>    put item 2 of list1 into temp
>    put item 2 of list2 into temp1
>    put temp && len(temp) into field 3
>    put return & temp1 && len(temp1) after field 3
>   end mouseUp
> In field 1, put this list:
> a="1",b="2",c="3"
> In field 2, put the same list, but separate the elements by spaces:
> a="1", b="2", c="3"
> (I used fields for the test so I could try different formats; you
> probably get the same results from stuffing lists into the variables
> directly, but that's not relevant in my situaton anyway.)
> Now run the script.
> You'll see that in parsing the script in field 2, Rev takes the space
> between the comma and the first value in the name-value pair as
> significant. This should not be the case based on my long experience
> with lists in other languages. That is, the two lists in the two fields
> above should parse identically.
> No?
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Dan Shafer, Revolutionary
> Author of  "Revolution: Software at the Speed of Thought"
> for more info
> Available at Runtime Revolution Store (
> _______________________________________________
> use-revolution mailing list
> use-revolution at

More information about the use-livecode mailing list