Re: Database Problem

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

It is a good practice in any procedural programing language to define all Public variables in one public section or subroutine or what have you at the start of a project.

Well the jury is still out on that one. There are arguments for not having any public variables at all.

Vinoba said...

Also a good idea to have all those names to start with MYPUB, or an abbreviation of the main theme of your work, such as in your case, MYMAP OR THEMAP, or something like that.

With Euphoria, you no longer need to mark your public symbols this way. The namespace concept allows one to name your public symbols however you like and then refer to them using the namespace for the include file.

Eg ...

-- mymod.e --- 
namespace mypub 
public enum  
   NAME, 
   ADDRESS, 
   TELEPHONE 


and then reference it thus

include mymod.e 
  data[mypub:NAME] 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu