Re: automatically call functions based on arguments
- From: normanj <nii2awh@xxxxxxxxx>
- Date: Tue, 29 Apr 2008 11:03:34 -0700 (PDT)
1) create a string with the function name (upper case!)
2) create a symbol from the string (use INTERN)
3) check if the symbol names a function (use FBOUNDP)
4) use FUNCALL on the symbol to call that function
if you really have macros replace 4) with:
4) create a list with the name of the function/macro as an element
5) call EVAL with the list as an argument
That is exactly what I want to achieve. Thanks.
.
- References:
- automatically call functions based on arguments
- From: normanj
- Re: automatically call functions based on arguments
- From: Rainer Joswig
- automatically call functions based on arguments
- Prev by Date: Re: def app = apply, problem
- Next by Date: Re: def app = apply, problem
- Previous by thread: Re: automatically call functions based on arguments
- Next by thread: Re: automatically call functions based on arguments
- Index(es):
Relevant Pages
|