[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
generic function
Is there way to define a generic function which will specialize
based on the number of arguments passed. For example, I'm trying
to do the following:
(DEFGENERIC foo (@OPTIONAL bar)
)
(DEFMETHOD foo ()
;; No arguments
<do some stuff>)
(DEFMETHOD foo (bar)
;; One argument
<do something different>)
Thanks
*******************************************************************************
Steve Smith | Internet: smith@icat.larc.nasa.gov
NASA Langley Research Center |
M/S 152 | Voice: (804) 864-2004
Hampton, VA 23665 | FAX : (804) 864-7793
*******************************************************************************