1. add_item conflict

There is a conflict in routine names in the example6.exw (List.exw) program..

add_item is used in wxeud.e and std/sequence.e .

tried

 
namespace lib 
public include std/sequence.e 
public function add_item() 
include lib.e 
 

But it did not work.. crashes back to the terminal..

Can wxeud.e and std/sequence.e live together somehow?

new topic     » topic index » view message » categorize

2. Re: add_item conflict

buzzo said...

Can wxeud.e and std/sequence.e live together somehow?

Yes, they can. I'm not sure what you were trying to do, but I don't see that list.exw includes std/sequence.e at all. If you need to have wxEuphoria and std/sequence.e to be used in the same file, you'll need to use namespace qualifiers when you call either routine:

include std/sequence.e 
include wxeu/wxeud.e as wx 
 
... 
 
wx:add_item( ... ) 
stdseq:add_item( ... ) 

Note that stdseq is the default namespace declared for std/sequence.e.

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: add_item conflict

buzzo said...

There is a conflict in routine names in the example6.exw (List.exw) program..

add_item is used in wxeud.e and std/sequence.e .

tried

 
namespace lib 
public include std/sequence.e 
public function add_item() 
include lib.e 
 

But it did not work.. crashes back to the terminal..

Can wxeud.e and std/sequence.e live together somehow?

This is how I did it:

-- main.ex 
include std/sequence.e 
include wxeud.e as wxeud 
 
? wxeud:add_item(....) 
? stdseq:add_item(...) 
new topic     » goto parent     » topic index » view message » categorize

4. Re: add_item conflict

FYI, I added a wxeu namespace to the wxEuphoria include file last October. So if you're using the latest tip from the repository, you already have a namespace to use.

     1.1 --- a/wxeud.e	Sat Oct 06 23:37:12 2012 -0400 
     1.2 +++ b/wxeud.e	Sun Oct 07 20:01:52 2012 -0400 
     1.3 @@ -113,6 +113,8 @@ 
     1.4  -- You can also use the public constant wxNEED_BUILD, which is used to 
     1.5  -- ensure that an older .dll or .so is not used. 
     1.6   
     1.7 +namespace wxeu 
     1.8 + 
     1.9  with define WXEU_0 
    1.10  with define WXEU_0_16 
    1.11  with define WXEU_0_16_1 

-Greg

new topic     » goto parent     » topic index » view message » categorize

5. Re: add_item conflict

Thanks to you both... problem resolved..

Z

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu