Re: Ten Modules or Less == Using Namespaces

new topic     » goto parent     » topic index » view thread      » older message » newer message
_tom said...

A suggested design for those that want to program by including a single, monolithic, monster, module. You can create an include file that includes all other includes.

A practical design ends up with ten modules. This is based on the organization the developers used in creating the Standard Library.

This is all described in the wiki:

http://openeuphoria.org/wiki/view/Modules.wc

Yes, you will have to use namespace prefixes to make things work. I do not believe this is much of a burden since namespace prefixes can be ignored in most programs and freely altered. In an OO-style language you must always use a class prefix . In a hardwired scheme you must always type the required prefixes. The O[ design requires less typing and is very flexible.

_tom

I am glad you have taken the right direction

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

Search



Quick Links

User menu

Not signed in.

Misc Menu