[aplusdev] Mapped files
John.Mizel at morganstanley.com
John.Mizel at morganstanley.com
Tue Aug 28 23:31:16 EDT 2001
Hello Alexei,
You can store a nested object by calling sys.exp{}, which encodes it into
a character vector. To convert it back into the nested object use
sys.imp{}.
i.e.
$mode ascii
"data.m" beam sys.exp{nested_variable}
nested_var := sys.imp{ beam "data.m" }
Note that I am using ascii mode for the above example. Also, nested_var
is a regular variable and not attached to the file data.m.
API's for external facilities like databases is usually done using
dynamically loaded functions and the system function _dyld{}. See "C
Subroutines" under Extensions and Tools in the manual.
Thanks,
John
On Wed, 29 Aug 2001, Alexei Zalivine wrote:
> Hello,
>
> I want to store nested matrix like this:
>
> 1 'Lesha' 10 'Mandrake'
> 2 'Sasha' 15 'SuSE'
> 3 'Dima' 5 'RedHat'
> I try to use the mapped file for it and get the "type" error. From manual I
> understand that I can store only simple character or numeric array. Is there
> the way to store nested data? Native file not acceptable for me.
>
> Regards,
> Alexei.
>
> P.S. Anybody can use the DB like Postgres or Interbase from A+?
>
>
More information about the apluslist
mailing list