1

Is there any scripting language which has native int64/uint64 support? I want to use this in a C++ game, so I need these features:

  • Can call it's functions from C++
  • Cross-platform (Windows + Linux would be enough)
  • C-like syntax
  • OOP
2

Lua is widely used for such scripting.

It has all the features OP requested, and integrates well with C and C++ programs.

See http://www.lua.org/

| improve this answer | |
  • Lua uses double for all numbers. Its syntax is also quite unlike C/C++. Indices are 1-based. Having said that it is light weight, easily integrated. We use it in WinGate – Adrien Jun 7 '16 at 6:30
  • The latest version uses long long and unsigned long long where available. (e.g. MSVC++ 14.0) Thanks :) – iFarbod Jun 8 '16 at 11:59
2

Python? It is Object-Oriented. Integers size is dynamic, can be 64 bit signed/unsigned. Some popular games uses it - Civilization IV for sure, I think I have found some Python files in Act of War: Direct Action files as well.

| improve this answer | |
  • 1
    Python's syntax is weird IMO. – iFarbod Jun 5 '16 at 15:44
  • Depends on which were your starting languages. I did start with Py. – M'cin Jun 6 '16 at 20:31
  • I'm good with C-style syntax. – iFarbod Jun 8 '16 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.