Re: ver. 4.0 std include files type conflict

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

There are other conflicts, such as new in regex.e, pcre.e, stack.e and map.e. There are conflicts with some internal methods as well, for instance, regex.e's find().

With the new standard library, there are over 600 public symbols now. It's impossible to make each one have a clean API and not have a conflict with another. For this reason, namespaces were created:

include regex.e as re 
include pcre.e as pcre 
include stack.e as st 
include map.e as m 
 
m:new() 
st:new() 
pcre:new() 
re:new() 

They all live together peacefully.

Jeremy

Thanks Jeremy:
I'am having a problem and I'am having a map type conflict
some where in my code so I just noticed that while trying to
find the problem.
With the error I'am getting the ex.err does tell me where
the conflict is just that I have one.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu