Re: 4.0 namespace question

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

If I use map in a library.

 
--< lib_number_1 >-- 
 
 -- I have to use as mm because of get and put in map namespace 
 
public include std/map.e as mm  
 
--< end of lib number 1 >-- 
---------------------------------------------- 
--< file_number_2 >-- 
 
include lib_number_1 
 
-- NOW HOW DO I ACCESS A MAP with mm IN lib_number_1 ? 
 
--< end of file number 2 >--  
 
-- lib_number_1 
include std/map.e as mm 

You do it the same way as in any other file. The 'mm' simply helps to tell euphoria what symbol you're referring to. They'll all use the same code. Nothing is ever included twice.

Matt

I don't think that works because I want to access the contents

of a map that has been created and loaded in the first file.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu