That's actually not "clearly bogus"
- semicolons are not required in chaiscript
xxx is seen as a statement in itself
- ChaiScript does not require pre-declaration of identifiers
xxx might be a not-yet-defined global value or
The only way to know that
func1 will fail in this case is to actually try to call it and see if
xxx has been defined as something
If you did something that was actually a syntax error you'd see what you expect:
def func1(int i)
(I added a colon, which has not place there).