I'm trying to make some kind of a console for a game.
For commands I use JavaScript functions. If, for example, a user types
"say hello" into the console, it will search for a JavaScript function
called "say" and pass "hello" as an argument. I got it to execute the
correct function if it exists, and print an error message if such a
function doesn't exist. If I type a command with the appropriate
amount of arguments it works just fine.
My problem begins when I want to make a command with no arguments or
more than one argument. I can't find a way to get the number of
arguments a function should receive, and if possible, the argument
names.

Is such a thing possible. And if it is, how should it be achieved?
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to