Re: Euphoria Standard Library on UBoard
- Posted by Robert Craig <rds at RapidEuphoria.com> Jul 31, 2005
- 561 views
Jason Gade wrote: > Robert Craig wrote: > <snip> > > You and Matt seem to be talking about the same problem and same > > proposed solution. As you might recall, I was initially enthusiastic > > about the solution, but later when it came time to actually implement > > it, I realized that there were a couple of negative aspects that I hadn't > > really thought of when it was first discussed, so I put it aside. > > > > On January 31, 2005 I wrote: > > > > > > 1. The change was going to add complexity and subtlety to > > > namespace rules that many people already had trouble > > > remembering. > > > > > > 2. After porting thousands of lines of C code to Euphoria > > > (i.e. the front-end), I had a couple of nasty cases where I > > > accidentally declared a global variable in two different files. > > > No error message was given, yet I was updating two different > > > variables, not one. It took a while to figure out what was > > > happening. Since the proposed change to the namespace rules > > > would increase the chances of this sort of bug going > > > undetected, I considered that to be a negative thing, > > > that would partially offset the positive effect of fewer > > > spurious error reports. > > The interpreter or translator could issue a warning... Yes, that could be useful. Thanks, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com