ID persistance
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9655
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
ID persistance
I gave incorrect information earlier about the permanence of ID's, a holdover from old HC thinking.
I suffer from old thinking overall.
These days, one can set the ID of any control, image or stack at will. I thought that the ID for controls was set at creation time, and could not change. The dictionary still asserts this, and further, a la HC, that the ID for a deleted control is permanently retired, like Micky Mantle's "9".
In early versions of Revolution the ID was in fact immutable, like HC.
But, given that there is another, settable, property, the "altID", does anyone think this is useful in any way? It seems to me that locking the ID (and reserving that value for posterity) has several benefits.
I know this is not going to change.
Craig Newman
I suffer from old thinking overall.
These days, one can set the ID of any control, image or stack at will. I thought that the ID for controls was set at creation time, and could not change. The dictionary still asserts this, and further, a la HC, that the ID for a deleted control is permanently retired, like Micky Mantle's "9".
In early versions of Revolution the ID was in fact immutable, like HC.
But, given that there is another, settable, property, the "altID", does anyone think this is useful in any way? It seems to me that locking the ID (and reserving that value for posterity) has several benefits.
I know this is not going to change.
Craig Newman
Re: ID persistance
Hi Craig,
I just checked hte dictionary of LC 9.02 and it told me that we can only change the IDs of stacks and images! Who told you otherwise?
I have no idea if altID is useful in any way, never used/had to use it.
Best
Klaus
P.S.
Please don't follow this %#Ω§*# "plural-with-an-apostrophe" trend!
I just checked hte dictionary of LC 9.02 and it told me that we can only change the IDs of stacks and images! Who told you otherwise?
I have no idea if altID is useful in any way, never used/had to use it.
Best
Klaus
P.S.
Please don't follow this %#Ω§*# "plural-with-an-apostrophe" trend!
Re: ID persistance
Ah, just saw the other post with Mark W. answer, I did not know this either!?
Lets see what the motherships says.
Lets see what the motherships says.
-
- VIP Livecode Opensource Backer
- Posts: 9655
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: ID persistance
Klaus.
Right, like you, apparently, I never tried to, or had need to change an ID.
I think I have been comforted in the past with persistent ID's, though I cannot think why right now.
Craig
Right, like you, apparently, I never tried to, or had need to change an ID.
I think I have been comforted in the past with persistent ID's, though I cannot think why right now.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9655
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: ID persistance
So, IDs, not ID's ?Please don't follow this %#Ω§*# "plural-with-an-apostrophe" trend!
Surely it is not a possessive, so the apostrophe may in fact be grammatically incorrect.
But "IDs" doesn't scan well for me.
IDS? Nope.
I know: IDIES.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9833
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: ID persistance
Dr. Raney added altID back in the early days to better support ports of SuperCard projects. Unlike HC, SupreCard files were not directly openable in MC, so a converter was needed to run in SC first to create a description file of all objects, then that file was read into MC to construct the project in MC format.
Since conversions from other xTalks are very rare these days, and for different reasons the primary ID is now changeable, I can't think of any use for the altID property.
In fact, given that good names are very readable in code and IDs are inherently cryptic in code, it's only for very specialized purposes one would ever need to change even the ID property.
Since conversions from other xTalks are very rare these days, and for different reasons the primary ID is now changeable, I can't think of any use for the altID property.
In fact, given that good names are very readable in code and IDs are inherently cryptic in code, it's only for very specialized purposes one would ever need to change even the ID property.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 7230
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: ID persistance
It's actually correct syntax, it only looks like a trend because so few people use it. I learned it back in grade school.Please don't follow this %#Ω§*# "plural-with-an-apostrophe" trend!
The ID's value is 1 -- a single ID
The IDs' values are all the same -- multiple IDs
However, unless you have a clone, we'd never write "Klaus' shirts are red." If I've ever done that, either I was in error or I made a typo.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: ID persistance
I am talking about the PLURAL (as in "plural-with-an-apostrophe") and you corretly wrote:
-> multiple IDs (and NOT: multiple ID's, you NEVER learned that at school))
You are talking about the GENITIV, which is of course correct, since you learned this at school:
-> The ID's value is 1 (value of the ID)
-> The IDs' values are all the same (values of the IDs)
However "Klaus' shirts are red" is correct german when dealing with a genitiv for words with a trailing S! Sorry for being so picky with languages, but this is something I really love.
And language is being treated horribly these times in every country...
(your <> you're | then <> than etc. not to mention german )
-> multiple IDs (and NOT: multiple ID's, you NEVER learned that at school))
You are talking about the GENITIV, which is of course correct, since you learned this at school:
-> The ID's value is 1 (value of the ID)
-> The IDs' values are all the same (values of the IDs)
However "Klaus' shirts are red" is correct german when dealing with a genitiv for words with a trailing S! Sorry for being so picky with languages, but this is something I really love.
And language is being treated horribly these times in every country...
(your <> you're | then <> than etc. not to mention german )
-
- VIP Livecode Opensource Backer
- Posts: 7230
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: ID persistance
LOL. I think it's telling that a German knows what to call the parts of speech better than an American. I think that's why I did so poorly in Latin class.
I agree with you about the ignorance of homonyms (see, I do know that word.) You see it everywhere.
I agree with you about the ignorance of homonyms (see, I do know that word.) You see it everywhere.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: ID persistance
Language changes over time, other wise we'd still be spelling 'book' as 'bok'. I can remember within my own lifetime when 'ain't' wasn't a word because it could not be found in any existing dictionary. Funny how things change
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: ID persistance
"Klaus' shirts are red" is correct syntactically, but implies that *all* his shirts are red. Otherwise it's necessary to add a quantifying modifier: "Three of Klaus' shirts are red". The fact that "shirts" and "are" are plural indicators eliminates the situation where Klaus only has one red shirt, although he may still have no red shirts with a "None of..." quantifier, although that would make the original statement nonsensical (as if this thread needed more push in that direction).
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
Re: ID persistance
I do not own any red shirt!
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: ID persistance
Time to crowdfund a red shirt for Klaus!
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
Re: ID persistance
Klausimausi ranks much higher than a red shirt. At least blue, if not gold.