Re: Idea/proposal/question DEF-FOREIGN-VAR

Kevin Rosenberg <kevin-HJRc7zDS/[email protected]> Thu, 14 Aug 2003 14:37:14 -0600
Newsgroups gmane.lisp.uffi.general
Message-ID <[email protected]>
--bjuZg6miEcdLYP6q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Edi Weitz wrote:
> For AllegroCL, I have no idea at all. I thought that
> FF:DEF-FOREIGN-VARIABLE was what I wanted but it seems to be intended
> for integer access only if I understand its behaviour correctly. If
> you macro-expand it you can see how they get at the variable's address
> but I don't think it's right to use internal, undocumented functions.

Good find! ff:def-foreign-variable is not listed on the
foreign-types.htm manual page. However, it is documented separatedly
at
http://www.franz.com/support/documentation/6.2/doc/pages/operators/ff/def-foreign-variable.htm

You should be able to use the :type keyword for non-integer types, but
I haven't tested this function.

Kevin

--bjuZg6miEcdLYP6q
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/O/L6ES7N8sSjgj4RAkBVAJ98X61KVPnrr7oklhEHvm+fqjAGMQCfQbtk
4KoH3Wx0ik6cmVIeqwskpaM=
=+aXH
-----END PGP SIGNATURE-----

--bjuZg6miEcdLYP6q--