class Database:
def Select(variable as string, *variables as (string)):
return Statement.Select(self, variable, *variables)
class Statement:
private def constructor(database as Database):
_database = database
static def Select(database as Database, variable as string, *variables as (string)) as Statement:
return Statement(database).Select(variable, *variables)
def Select(variable as string, *variables as (string)) as Statement:
// do stuff
return self
_database as Database
##############
>booc varargs.boo
varargs.boo(3,49): BCE0119: Explode expression can only be used as the last argument to a callable which takes a variable number of arguments.
varargs.boo(10,53): BCE0119: Explode expression can only be used as the last argument to a callable which takes a variable number of arguments.
2 error(s).
http://ckknight.no-ip.org:8080/paste/?id=174