Re: My Lobbying
- Posted by irv <irv at ELLIJAY.COM> Sep 06, 2000
- 473 views
On Wed, 06 Sep 2000, you wrote: Al Getz wrote: > irv wrote: > Wouldn't help, even If we knew the structure, since we can't find it. > <<< > > If Euphoria can find it, we can find it. Only if you can convince Rob to add a function to return the (momentary) address of a sequence. As well as some kind of a lock function to prevent garbage collection and sequence copying from taking place while you work with the structure. Otherwise, it'll be gone by the time you're ready to write something there. Odds of Rob doing this are less than .01%, I think. > if defined, if not defined: > One obvious use here is when declaring constants: > you have a program written declaring constants and some constants > generate errors because they are already declared in someone elses > program (like Win32Lib).... Yes, proper handling of namespacing is a far better solution to this problem than "if defined" could ever be. See just about any C program for proof of the awkwardness of that approach. Besides, I see no way that "if defined" could help in the situation you propose: if defined x then -- oh,oh, x was already used in Win32lib constant myx = 3 elsif defined myx then -- oops, myx declared in Jiri's fonts constant anotherx = 3 elsif defined anotherx then -- oops, declared in Freds Functions constant yetanotherx = 3 .... After all this, how does your program know to refer to yetanotherx in place of the original x? Do you have to change all the following code? -- Regards, Irv