don't see anything on pointers also nothing on type "any"
for example, yesterday I was adding declarations for the gmp library and the gmp_sprintf will take mpf, mpz and mpq types
so I made three aliases to the same function but today tried this
and it works for all three types.DECLARE function MPF_Sprintf CDECL LIB "gmp.dll" ALIAS "__gmp_sprintf" (BYREF s AS ASCIIZ, BYREF fmt AS ASCIIZ, BYREF X AS ANY ) as long
hope am not overlooking something.
You are right jack.
I didn't cover much that area in help material. I need to feel this hole.
To be honest I'm still working on the many different ways a parameter can be passed to an external function. Some "ways" a re not 100% covered but I'm working on that in the development background so every new thinBasic version brings improvements on this area even if not mentioned in help.
So, I promise I will work on it.
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Bookmarks