发明授权
US5809302A System and method for enabling pointers to be passed from computer programs written using computer programming languages that do not support pointers 失效
用于使指针从使用不支持指针的计算机编程语言编写的计算机程序传递的系统和方法

System and method for enabling pointers to be passed from computer
programs written using computer programming languages that do not
support pointers
摘要:
Described herein is a system and method for enabling an application to pass a structure containing a pointer member to an external entity, wherein the application represents a computer program executing in a computer system, and the computer program is written in a computer programming language that does not support pointers. The application declares a variable V, a structure type having a member P, and a variable M of the structure type. The application invokes a function written in a computer programming language that supports pointers. A reference to the variable V is passed to the function. The function, when executed, obtains and returns an address of the variable V. The application sets the member P in the variable M equal to the address of the variable V. The application then passes the variable M to an external entity. In this manner, the present invention enables a structure having a pointer embedded therein to be passed to the external entity.
公开/授权文献
信息查询
0/0