function_args (function)
This function lists the arguments of any function. Each argument is returned in the form of an association list, whose first element is the function argument, and whose second element represents the argument modifier(s), if any. The hex numbers that correspond to function modifiers are as follows:
0x20000000 Optional (?).
0x40000000 Variable length argument (...).
0x80000001 Not evaluated (!).
Gamma> function_args(getprop); ((symbol 0) (property 0)) Gamma> function_args(drain); ((file 0) (t_or_nil 0)) Gamma> function_args(gc); nil Gamma> function_args(defvar); ((symbol -2147483648) (value 0) (constant? 536870912)) Gamma> function_args(read); ((file 0)) Gamma> function g (a,b,c) {((a * b)/c);} (defun g (a b c) (/ (* a b) c)) Gamma> function_args(g); ((a 0) (b 0) (c 0)) Gamma>
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.