For Programmers: Free Programming Magazines  


Home > Archive > Tcl > July 2005 > windows x64 pointers









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author windows x64 pointers
sarrigibson@hotmail.com

2005-07-27, 5:06 pm

Does TCL 8.4.9 and above have support for receiving 64 bit pointers
through a TCL extension?

Don Porter

2005-07-27, 5:06 pm

sarrigibson@hotmail.com wrote:
> Does TCL 8.4.9 and above have support for receiving 64 bit pointers
> through a TCL extension?


Values passed through Tcl typically are in the form of a Tcl_Obj struct.

If you write your own Tcl_ObjType, you can use the
internalRep.otherValuePtr field to pass through a (VOID *) value
easily.

Or, I imagine you could fairly easily pack/unpack your pointer value
in/out of a Tcl_NewByteArrayObj().

--
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@nist.gov Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|_______________________________________
_______________________________|
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com