Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    570
  • comments
    2427
  • views
    217354

Untitled

Sign in to follow this  
Mushu

367 views



Python -> "calls" C -> "calls" Python -> Propagates expected value!

Yayayayay. Now to flesh out the templates so they accept more than 2 argument functions (lolol lots of repetitive template code to write :O) and then to do the data sharing between Python<->C. Basically, registering C structs as Python object types.

Also, I think I've found a way to get around the dilemma discussed before (the call('funcname') syntax with Pythong) - functions can be represented in Python as an object which implements __call__ (essentially a function object). If I (from C++) create such an object whose __call__ method passes the arguments AND a unique string to identify which function is being called to the function call handler in C++, then I can effectively use the desired (normal) syntax funcname(args). Which is cool.

It'll take a couple more days to implement that though :(
Sign in to follow this  


2 Comments


Recommended Comments

Guest Anonymous Poster

Posted

Your journal lately has been worthy of Evil Steve. Very dull.

Share this comment


Link to comment
y thank yuo.

I'll try to spice it up later in the week with some sauce. How does that sound?

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!