Page 1 of 2
ID persistance
Posted: Fri Feb 01, 2019 6:51 pm
by dunbarx
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
Re: ID persistance
Posted: Fri Feb 01, 2019 7:12 pm
by Klaus
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!
Re: ID persistance
Posted: Fri Feb 01, 2019 7:15 pm
by Klaus
Ah, just saw the other post with Mark W. answer, I did not know this either!?
Lets see what the motherships says.
Re: ID persistance
Posted: Fri Feb 01, 2019 7:34 pm
by dunbarx
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
Re: ID persistance
Posted: Fri Feb 01, 2019 9:05 pm
by dunbarx
Please don't follow this %#Ω§*# "plural-with-an-apostrophe" trend!
So, IDs, not ID's ?
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
Re: ID persistance
Posted: Fri Feb 01, 2019 9:09 pm
by FourthWorld
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.
Re: ID persistance
Posted: Sat Feb 02, 2019 5:56 pm
by jacque
Please don't follow this %#Ω§*# "plural-with-an-apostrophe" trend!
It's actually correct syntax, it only looks like a trend because so few people use it. I learned it back in grade school.
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.
Re: ID persistance
Posted: Sat Feb 02, 2019 6:13 pm
by Klaus
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
)
Re: ID persistance
Posted: Sat Feb 02, 2019 6:32 pm
by jacque
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.
Re: ID persistance
Posted: Sat Feb 02, 2019 10:18 pm
by bogs
Klaus wrote: ↑Sat Feb 02, 2019 6:13 pm
Sorry for being so picky with languages, but this is something I really love.
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
Re: ID persistance
Posted: Sun Feb 03, 2019 2:48 am
by mwieder
"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).
Re: ID persistance
Posted: Sun Feb 03, 2019 2:49 am
by mwieder
Re: ID persistance
Posted: Sun Feb 03, 2019 4:24 am
by Klaus
I do not own any red shirt!
Re: ID persistance
Posted: Sun Feb 03, 2019 6:32 am
by mwieder
Time to crowdfund a red shirt for Klaus!
Re: ID persistance
Posted: Sun Feb 03, 2019 8:37 am
by SparkOut
Klausimausi ranks much higher than a red shirt. At least blue, if not gold.