I have noticed a strange behavior of the syntax command. In the following example, the option int() expects an integer argument. Surprisingly, if I call the command with a non-integer value in int(), it does not abort with an error message but treats this option as one of the additional options to be placed in the local macro `options'. In my view, this is very strange. Does anybody have any insights whether this is an intended feature?
Code:
capture program drop testprog program define testprog syntax , [INT(integer 1) *] display "INT: `int'" display `"*: `options'"' end testprog , int(0.5)
Comment