Re: Do you currently use namespaces?

new topic     » goto parent     » topic index » view thread      » older message » newer message

CChris wrote:

>> Well why not make the default namespace the name of the file,
>> without .e[??] at the end? 


> For several reasons:
> * mylib_v1.e may become mylib_v2.e
> * file names may contain invalid characters for an Euphoria identifier,
> including,
> worst of all, spaces;
> * What is the name of fileA.e under Windows? Its short 8.3 name? its
> lowercased
> form? its uppercased form?
> * Having all of the above in mind, copy your library from one platform to
> another,
> and have fun.

OMG! These are problems that can never be solved in our lifetime. Let's all
panic and run away now.

... or ...

* Use the new v4.0 'namespace' directive to provide a default name for
"mylib_v1.e" and thus also "mylib_v2.e"
* Strip out illegal identifier characters
* Convert to lowercase
* As coded by the application author on the include statement
* Huh??? What's the problem with different platforms and file names?

Come on Chris, try to help solve the issues. Please, we need all the good ideas
we can get,

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu