Livecode 10.0.0dp5 new reserved words
paul at researchware.com
Tue Jul 11 08:20:12 EDT 2023
On 7/11/2023 8:01 AM, Mark Waddingham via use-livecode wrote:
> On 2023-07-11 12:28, Paul Dupuis via use-livecode wrote:
>> Does anyone, including folks at the mothership, have a list of new
>> reserved words in Livecode 10?
>> I have used a variable called "tExt" (t for temp, Ext for extension)
>> to pull of the file extension from file paths. i.e. if tFile contains
>> set itemDel to "."
>> put last item of tFile into tExt -- tExt contains "png"
>> However, in LC 10.0.0dp5, the word "tExt" (which is "text") now
>> appears to be a reserved work and you can not use it as a variable.
>> This is not true in LC 9.6.9. This has me asking: Are there any
>> other new reserved words I should refactor out of my code before I
>> get mysterious errors?
> I don't think we knowingly made 'text' not be allowed as a variable in
> non-explicitVariables mode...
> You cannot explicitly declare `tExt` as a variable in 10 or 9.x or (I
> think) ever - but it obviously worked in 9.6.x and before if you don't
> use explicitVariables.
> I'm not sure what change we've made which has caused that - file a bug
> and we'll look into it - its probably a regression, but could be a
> (necessary, but unrealized) side-effect of another change we've made
> Warmest Regards,
Thank you! Bug filed: https://quality.livecode.com/show_bug.cgi?id=24266
I am fine changing 'tExt'. As Martin just posted, ‘All words in the
English Dictionary should be considered reserved words.’ is not a bad
rule. Just to illustrate how the eyes and mind can play tricks, I have
been using the variable 'tExt' for parsing file extensions for DECADES
and ONLY TODAY realized that it was the word 'text'! I never saw it as a
dictionary word until today!
More information about the use-livecode