Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Radiant on Fri 17/09/2004 16:49:03

Title: Function prototyping (feature request)
Post by: Radiant on Fri 17/09/2004 16:49:03

Would it be possible to add function prototyping to AGS? E.g.


declare function a (int, string);

function b (int) {
  a (4, "hello");
}

function a (int, string) {
  b (5);
}



Also compiler-related, it may be useful to generate a compiler error if the player uses for instance MoveCharacter (SOME_GUY, ...) if SOME_GUY is in fact the identifier for a view rather than for a character.
Title: Re: Function prototyping (feature request)
Post by: Pumaman on Fri 17/09/2004 19:57:06
I can see how this would be useful, so I'll add it to my list, as a low priority feature.

As for your second point, it would be nice, but the current way the compiler works would make this difficult to implement. I'll think about it.