Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


help with choice needed

This topic is 5588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to learn a scripting language. I'd like it to be able to: Expose classes to the scripting language (for instantiation) Expose class methods Be able to handle STL containers Be quick to learn Basically I'd like it to be able to handle classes with signatures similar to this:
class A


 const std::list<SomeOtherClass>& GetList()const{return smc;}

 void SomeMethod(float val, std::container<SomeType>& st);


  std::list<SomeOtherClass> smc;
I'd welcome any advice you can give. [edited by - jeffB on June 4, 2003 11:45:56 AM]

Share this post

Link to post
Share on other sites
I was hoping you would be more specific. I don''t have much time and each language has a lot of documentation to wade through. I''ve spent most of the day learning about lua for example, but so far no one has confirmed if it copes with the STL or not, and (more importantly) shown me an example. If it does, then lua (via toLua) is probably going to be okay. Can anyone direct me to a snippet that demonstrates lua with the STL?

Does anyone have any experience with using lua to expose classes? How long is it going to take me to learn? (I''m in a rush!)

Share this post

Link to post
Share on other sites
If you are in a rush, don''t use scripting languages. A scripting language, more than almost any other external component, requires a lot of time to get to know its intricacies and caveats. There simply are no easy answers.

AFAIK, no binding generators automagically allow you to expose STL containers to scripting languages and have them look like arrays. This is because you generally export a small subset of your engine''s functionality to the scripting system, which almost always excludes direct member data.

How appropriate. You fight like a cow.

Share this post

Link to post
Share on other sites
Unless you have certain constraints, why not consider using the scripting language for the container? Expose the type being held in the container to the scripting language and use a sequence type to hold instances of it.

Unless you have certain constraints, of course.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!