I just created a new database and created a method with this code:
C_POINTER($pArray;$pLongInt)
$pArray:=Get pointer("Array")
ARRAY REAL($pArray->;1)
$pArray->{1}:=7
ALERT(String($pArray->{1}))
Compiled it, and it ran without error. How long have we been able to get a
pointer to an array that was never declared to the compiler and have it work?
If I use the following code compiled I get a runtime execution error as I
expected:
$pLongInt:=Get pointer("LongInt")
C_LONGINT($pLongInt->)
$pLongInt->:=8
ALERT(String($pLongInt->))
Neil
--
Privacy Disclaimer: This message contains confidential information and is
intended only for the named addressee. If you are not the named addressee you
should not disseminate, distribute or copy this email. Please delete this email
from your system and notify the sender immediately by replying to this email.
If you are not the intended recipient you are notified that disclosing,
copying, distributing or taking any action in reliance on the contents of this
information is strictly prohibited.
The Alternative Investments division of UMB Fund Services provides a full range
of services to hedge funds, funds of funds and private equity funds. Any tax
advice in this communication is not intended to be used, and cannot be used, by
a client or any other person or entity for the purpose of (a) avoiding
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or
recommending to another party any matter addressed herein.
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************