Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with initial value of property
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01553671
Message ID:
01553947
Views:
51
You just caused me to have a vision of YAG, while wearing his cowboy hat, with his feet up on the desk! :)



>Nothing personal but I see you have not changed a bit ;-) You are like a dog with a bone over some pretty obscure issues. I vividly remember an endless back and forth you got into here with Alan Griver when he announced that VFP was being sunsetted. Alan is about the most even tempered person the community has ever had, certainly at his level. IMO he went way beyond the call in repeating politely what he had already said to you. You refused to be satisfied and finally he decided "enough." IIRC he said he was going to go put some steak on the grill. It was like you wanted Bill Gates to swing by your house and explain it in person.
>
>Obsession can be a good trait. Up to a point.
>
>>To be honest, I expected this reply. :)
>>
>>Can you recall who it was here on the UT that learned you and others that it is by design? Was it someone from MS or simply someone else?
>>
>>>You wrote: It cannot possibly be by design, as it has nowhere been documented.
>>>
>>>I disagree with your assertion. Simply because something is not documented does not mean it is not a result of the design. Some features
>>>are only "documented" by word of mouth, which is how Iearned of this, long ago, here in the UT.
>>>
>>>
>>>
>>>>Hi Doug,
>>>>
>>>>Your Nope is simply incorrect. It cannot possibly be by design, as it has nowhere been documented.
>>>>
>>>>The reason you mention is far sought, as it would have been only a simple extra piece of code to re-initialize the properties, without almost any impact on the performance.
>>>>
>>>>I am also almost sure that this flaw is not occurring in scx's.
>>>>
>>>>>Hi Peter.
>>>>>
>>>>>>'By-design' may be what has been told to you, but to me that sounds like a rationalisation, to hide the real reason: a design flaw or simply a blind spot for this when implementing it, in both cases a flaw they somehow didn't want to repair.
>>>>>
>>>>>Nope, Jim is right -- it's by design, and has been there since VFP 3.0. The reason is the way VFP handles classes: a class is a template for an object. As Jim notes, when you instantiate a class for the first time, the class is read into memory and any properties with "=" are evaluated. VFP then copies the class definition to create the object. Instantiating it again creates another copy, but with the same property values as the class. So, properties with "=" are evaluated for the first object only.
>>>>>
>>>>>(Thanks to Christof Wollenhaupt for explaining this to me.)
>>>>>
>>>>>Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform