1. Re:Namespace proposal
- Posted by kbochert at ix.netcom.com Jul 06, 2001
- 378 views
-------Phoenix-Boundary-07081998- Two comments on 2.3 namespaces: 1. >>Within the scope of a local symbol x, or private symbol x, >>you can also reference a global x as long as you qualify it, >>=A0=A0=A0e.g. myfile:x --rply from Derek Parnell >I don't suppose you can stretch this have some mechanism to allow accessing >a local symbol x within the scope of a private symbol x=3F Just for >orthoganality reasons if nothing else=3F Maybe a NULL namespace qualifier... >object x >procedure abc() >=A0=A0=A0=A0object x >=A0=A0=A0=A0x =3D :x >=A0=A0=A0=A0. . . >end procedure Good idea. Esthetically pleasing. 2. An unmentioned point: Would the following code work=3F include file.e as Eu sequence s s =3D current_dir () -- ref without namespace!! Allowing a unique global id to be referenced without namespace qualifier would make upgrading existing code to namespaces much easier. It would also reduce typing effort and typographic confusion. (a line like: counterlib:counter_objects =3D counterlib:counter_objects[2..length(counterlib:counter_objects)] is hard to read, hard to indent and hard to comment! ) -----Karl Bochert------ -------Phoenix-Boundary-07081998---
2. Re: Re:Namespace proposal
- Posted by Robert Craig <rds at RapidEuphoria.com> Jul 06, 2001
- 373 views
Karl Bochert writes: > Would the following code work? > > include file.e as Eu > sequence s > s = current_dir () -- ref without namespace!! Yes, that's fine. Although a namespace qualifier was defined, you would not be *required* to use it, except where it was needed to disambiguate a reference to a global symbol. You could also choose to use qualifiers in places where they aren't necessary. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
3. Re: Re:Namespace proposal
- Posted by Robert Craig <rds at RapidEuphoria.com> Jul 07, 2001
- 372 views
pmosley writes: > Hi Rob > What other goodies are going to be in the next version? I have a long list of goodie-candidates that I'm working through. I may reveal some of them as I complete them, but others I might save for a surprise. One year, as a child, I knew in advance *all* the gifts I was going to get at Christmas. The day itself became an anti-climactic let-down. You wouldn't want that would you? > Also could we get a routine for get_mouse in text mode ( have it report > row and col), I have my own little routine,but it whould be nice for the > new ones to have one in the get_mouse routine or mouse.e Thanks for the suggestion. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com