"Aaron Drew" <ripper at hotkey.net.au> wrote in message news:3ada4bb9$1 at news.iprimus.com.au... > I'm looking into using Python as a scripting language for a game but I'm > having trouble finding documentation regarding dual representations of class > instances as both python accessible objects and C++ class instances. > > I need to write the bulk of the code in C++ and require use of C++ class > attributes. > > All of the examples I've seen of python to C++ extensions seem to avoid the > problem of C++ class attributes by declaring extern "C" functions as python > class methods and calling the results a python/C++ bridge. Is it possible > for me to store, say 'int x' in a C++ class and refer to it as myobject.x in > python? http://www.boost.org -- Rainer Deyke (root at rainerdeyke.com) Shareware computer games - http://rainerdeyke.com "In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4