Skip to content

Does This Data Type Actually Exist

In the lexicon there are 2 data types that seem to be very similar - action and command. The thing is you as a user cannot create variables of either type. They appear to be simplified replacements for the function pointers found in C/C++ and are used as parameters for a limited number of built-in functions. At least according to the Lexicon (both online and offline versions) that is. The odd thing is that if you check these functions (DelayCommand(), AssignCommand() and ActionDoCommand()) in the toolset compiler, they all only use the action data type as a parameter. None of them use the command data type.

This leads me to the obvious question - does the command data type actually exist? Or does it need to be removed from the lexicon?

TR

Comments

  • FreshLemonBunFreshLemonBun Member Posts: 909
    It seems more like some ambiguity and possibly an alias for a simple function that returns void. At least that's how the parameters in functions like delaycommand are treated, you put in a void function and it works.
Sign In or Register to comment.