Re: ver 4.0 Name Space Question ?

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

If I have a bunch of public constants in a Library
and I include that library in a second library.

Is there a way to make the constants visible from the second
library without making the first libraries constants global ?

If I understand you correctly, you have this ...

-- LIBA.e -- 
public integer foo 

and this ...

-- LIBB.e -- 
include LIBA.e 

and you want things that include LIBB.e to be able to see foo.

If that is the case then write LIBB.e like this ...

-- LIBB.e -- 
public include LIBA.e 

Note that we public include a file that contains public symbols so that those symbols are made 'as if' they were public in the file that has the include.

public symbols are normally exposed for one level of include, but a public include exposes included public symbols up one more extra level.

By doing this, files that include LIBB.e will also be able to see public symbols declared in LIBA.e.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu