X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=blobdiff_plain;f=scilab%2Fmodules%2Fast%2Fincludes%2Ftypes%2Fuser.hxx;h=b5e02a9cd1fbc4021264c15ae00fa9caf0f3b6a3;hp=68050b444d81d2edd385fca8498a83130dcd0409;hb=64f1b650c6525627cd39053c3430f857e9409db7;hpb=51015678dc2598c38a60ede63428641424a612bf diff --git a/scilab/modules/ast/includes/types/user.hxx b/scilab/modules/ast/includes/types/user.hxx index 68050b4..b5e02a9 100644 --- a/scilab/modules/ast/includes/types/user.hxx +++ b/scilab/modules/ast/includes/types/user.hxx @@ -99,6 +99,15 @@ public : return true; } + // hasInvokeOption must return true to call the user type with optional argument. + // ie : myUserType(a,b, opt=value, opt2=value2,...) + // in this case, "types::optional_list& opt" will contain opt and opt2. + // by default this method return false, the optional list is empty and the input list contains all arguments. + virtual bool hasInvokeOption() const + { + return false; + } + // invoke method is called when a UserType is called with "(...)" ie : a = myUserType(...) // This implementation allow the use of extract method above, but it can be overloaded. // Inputs :