import and global namespace

N

nate

I'd like a module than I'm importing to be able to use objects in the
global namespace into which it's been imported. is there a way to do
that?

thanks,
nate
 
B

Bruno Desthuilliers

nate a écrit :
I'd like a module than I'm importing to be able to use objects in the
global namespace into which it's been imported. is there a way to do
that?

It's a very bad idea. Instead of asking how to implement a bad solution,
tell us about the real problem.

NB : FWIW, the clean solution probably involve a class...
 
B

Bruno Desthuilliers

Dennis said:
Or a common module that both (all) import...

I'm afraid this would be as messy. Having one module depending on
implicits external names is a good way to spaghetti code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top