Author Topic: Functions defining Functions...  (Read 2084 times)

0 Members and 1 Guest are viewing this topic.

Columbia

  • Guest
Functions defining Functions...
« on: November 08, 2004, 02:19:10 PM »
Have any of you ever had luck in writing a function that will in turn define other functions on the fly?  I have a specific need for this, however I have not yet been able to get it done.  The exact specifics of this are:

  - I want a lisp function that I can call within another function that will define a LISP command wrapper for a VBA macro/program.  (is this making any sense?)

  - I want to be able to pass this function a list of lists with the following structure '( (cmdname vbafilename macroname) ...) and from this have it create command line accessible macros.  (am I smoking too much crack?)

I know I can have LISP write out another .lsp file and then load it, but that's not what I'm really after.  Although, if it comes down to it, then I will have to go with that route.

Anybody??  Anybody at all??

(hears the sound of crickets in the late autumn sunset...)

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Functions defining Functions...
« Reply #1 on: November 08, 2004, 02:29:00 PM »
it should be quite possible....Take a look at the AutoLoad functions that Autodesk uses. It should give you an idea about how they do such a thing.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Functions defining Functions...
« Reply #2 on: November 08, 2004, 02:33:32 PM »
here's some stuff that might help.
http://theswamp.org/phpBB2/viewforum.php?f=2
wait a minute....... bad link. *grin*

try this one:
http://theswamp.org/phpBB2/viewtopic.php?t=163&highlight=defunq
TheSwamp.org  (serving the CAD community since 2003)