Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE - Why?
Message
From
04/04/2008 14:25:26
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
01/04/2008 15:18:05
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01306848
Message ID:
01308306
Views:
7
>Having cut my teeth in the old days when every extra byte mattered, eventually I learned that "the industry" doesn't care as much as we do about efficiency. HTML, for example, is terribly inefficient in its use of bandwidth yet we all seem to tolerate that. Use of #DEFINE vs variables is unlikely to match the resource use of a busy HTML page.
>
>You're right, if a frequently referenced constant is large you may be much better off putting it in a variable. If it's very large, a memo might be an even better idea. Apart from that, it's down to style. Neither is easier than the other; the main difference is that variables definitely create extra entries in the name table, though changes Calvin made to the name table in one of the iterations made this less of an event. Who knows- perhaps this is a throwback to the days when we had 128 bytes total and felt obliged to conserve every one of them. ;-)

Well, you couldn't be unjust and conserve only, say, last 28 bytes after having squandered the first 120, or conserve only odd ones while being like a drunk baron with the even ones... it's every one of them or nothing.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform