Re: Too many namespaces
- Posted by EUWX Sep 16, 2013
- 3809 views
Matt:
You have your own example you worked with for quite a while.
You used wxWidgets.
All the constants there have a prefix wx
In your version 16 of wxEuphoria, the whole .dll becomes memory resident. That means you got the file functions of wxWidgets which Euphoria already has and therefore, does not need. Yet using the dll, you are using that extra memory for a facility of wxWidgets you do not need. And there are many more facilities in wxWidgets which are duplicates of or similar to existing Euphoria facilities.
I have used comfortably your monolithic version of wxeu for GUI and not used the file functions therein, because I am using the Euphoria's "native" file functions. No problem there. Look at some other libraries; you will find that people have taken the same approach of using a relevant prefix.
In a nutshell, all I am saying is that there should not be 50 or 100 namespaces in Euphoria, but only 3-5, perhaps 8. The extra memory usage would not be a significant problem now (unlike the situation at the turn of the Century). If there are some good .e and .ex wandering around in the rapideuphoria archive, incorporate them if they are half relevant but into and within existing namespaces and reduce the number of existing namespaces at the same time.