Sure - it works somewhat for 1) but I don't like the wrapper approach for declares because of the overhead involved. Plus its a drag to write the wrappers. There should be a way of defining the declare once inside a namespace and then one would be able to use it anywhere, without the extra penalty of the wrapper function call.
On 1/2/07 17:40, "Norman Palardy" <[EMAIL PROTECTED]> wrote: > > On Feb 01, 2007, at 10:05 AM, Daniel Stenning wrote: > >> Namespaces would indeed be very helpful - for two reasons: >> >> 1) it would allow for a better way of accessing Declares. A whole >> bunch of >> declares could be put inside a given namespace,m removing the need >> to have >> to keep declaring the same API functions inside every RB method >> that calls >> it >> 2) it would facilitate much better support for incorporating 3rd >> party code >> into projects - whether RB based through DLL declares or plugins. >> >> My idea for namespaces would be to implement them simply as a >> special type >> of RB project folder. Any RB class, module,interface or window >> placed >> inside such a folder would then be accessed by using the namespace >> name as a >> dot prefix. > > A module with methods works for this > Create a method that wraps the declare once and use the heck out of it > That is rb's namespace mechanism at the moment > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives of this list here: > <http://support.realsoftware.com/listarchives/lists.html> > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
