On 3/18/07, Kevin Bluck <[EMAIL PROTECTED]> wrote:
> Presently, if wx/setup.h has wxUSE_STL 1 wxLua will not build, because of the
> widespread use of wxNode* instead of wxList::compatibility_iterator. I've made
> the necessary changes in my sandbox and submitted the patch to Sourceforge.

Thanks, I had a few changes of my own and so I applied it by hand. I
think I got them all. I've always been annoyed by the use of wxList
since I think that for most purposes wxArrays are easier to use and
understand. I think I may eventually just switch over to
wxArrayPtrVoid since these arrays are not really for public use and

> On a related note, when building with STL wxLUA_USE_wxList
>     must be set to 0. It appears that when pushing node on the stack it 
> assumes
> that nodes are pointers and therefore treats them as light userdata, but in 
> STL
> mode compatibility_iterator is generally *not* a pointer, and so is not
> convertible to void*. I personally don't view this as an issue worth fixing; I
> don't have any real need to use wxList in Lua code. But to be perfectly
> complete, those functions that return Node/compatibility_iterator ought to 
> push
> full userdata instead of light.

Ohh, this is different. The only reason to have wxList in wxLua at all
is for wxWindow::GetWindowList so we could probably just provide a
minimal set of functions for the wxWindowList.

I have put in the condition that wxList and wxWindowList are only for
!wxUSE_STL.

Thanks,
    John Labenski

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to