Re: Globals and shrouding
- Posted by Irv Mullins <irvm at ellijay.com> Jun 28, 2001
- 472 views
On Thursday 28 June 2001 09:51, Tony Bucholtz wrote: > > Irv Mullins wrote: > > Hey, wait a minute here! Why not just a new "with shrouding" command: > > <snip> > > Irv, I agree, your "with/without shrouding" is much tidier, and > <hint> should be easier for Rob to implement </hint>. The only > thing I could add would be to ensure that these commands have no > ill effects on code that *isn't* shrouded. > I can't see any possibility of ill effects - Euphoria itself would just ignore "with shrouding" or "without shrouding" as meaningless. The shrouder is the only thing that looks for these flags. Of couse, I was careful to make my references to the functions and procedure descriptions as -- comments, so that Euphoria would ignore these as well, leaving the "real" functions and procedures safely hidden away in the shrouded portion of the file. Should I forget to make these as comments, no big deal, Euphoria will warn me right away, because there are no matching end function or end procedure lines. (does that already) However, this introduces some extra work - if I change the functions or parameters in my code, I must also be careful to change the "documentation" in the comments at the top. I usually forget. I can't think of a simple way around this. It's a shame when programmers have to actually do work, isn't it :) Regards, Irv