Re: ver. 4.0 std include files type conflict

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu