1. add_item conflict
- Posted by buzzo Feb 07, 2013
- 1262 views
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?
2. Re: add_item conflict
- Posted by mattlewis (admin) Feb 07, 2013
- 1249 views
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
3. Re: add_item conflict
- Posted by jimcbrown (admin) Feb 07, 2013
- 1242 views
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(...)
4. Re: add_item conflict
- Posted by ghaberek (admin) Feb 07, 2013
- 1314 views
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
5. Re: add_item conflict
- Posted by buzzo Feb 07, 2013
- 1253 views
Thanks to you both... problem resolved..
Z