Author Topic: Can I get the pointer of a function?  (Read 1826 times)

0 Members and 1 Guest are viewing this topic.

highflyingbird

  • Bull Frog
  • Posts: 415
  • Later equals never.
Can I get the pointer of a function?
« on: January 02, 2011, 08:28:00 PM »
In vlisp IDE ,if you type a "sin" in command line,you will get 

Code: [Select]
_$ sin
#<SUBR @0629e334 SIN>
if "test" is a defined function
then will be:
Code: [Select]
_$ test
#<USUBR @07ccfa50 TEST>

I want to know:
0629e334 ,07ccfa50 etc. are they the pointers of functions?
if they are not,how do I get the Pointer of a function?

can I use vl.application?
Code: [Select]
Set ACAD = GetObject(, "AutoCAD.Application")
Set vl = ACAD.GetInterfaceObject("VL.Application.16");maybe vl.application.17,vl.application.1,etc.
Set VLF = vl.ActiveDocument.Functions
Set sym = VLF.Item("read").funcall(lispStatement)
retval = VLF.Item("eval").funcall(sym)
I am a bilingualist,Chinese and Chinglish.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8858
  • AKA Daniel
Re: Can I get the pointer of a function?
« Reply #1 on: January 02, 2011, 10:39:27 PM »
it looks like a function pointer, on my machine (64bit) its  #<SUBR @000000002a1e4bb0 SIN>
try parsing (vl-symbol-value 'sin)

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Can I get the pointer of a function?
« Reply #2 on: January 02, 2011, 10:44:41 PM »
it looks like a function pointer, on my machine (64bit) its  #<SUBR @000000002a1e4bb0 SIN>
try parsing (vl-symbol-value 'sin)


#<SUBR @000000002d06abb0 SIN>

2011 win7 64
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

highflyingbird

  • Bull Frog
  • Posts: 415
  • Later equals never.
Re: Can I get the pointer of a function?
« Reply #3 on: January 03, 2011, 05:01:14 AM »
Maybe it's a pointer,but I can't access it.
I am a bilingualist,Chinese and Chinglish.