[GEN] Re: multiple pointers
On Sun, 15 Oct 2000, Mark Brown wrote:
>> Hi Cense
hello mark
>> I replied but perhaps what I suggested was dumb.
>>
>> You can't get pointers to your Euphoria atoms. You need to allocate memory
>> to hold the values you require. You then save a pointer to the memory (which
>> will need to be a certain size to hold the value(s) you need).
>>
>> (You probably knew all this anyway!)
ya i knew this ;)
>> Perhaps you should try peek4u instead to get the whole pointer value.
>>
>> -- to get at the list using your pointer to the list
>> ptr = peek4u(ptr_to_list) -- should give us the pointer to the list
>> all_values_in_list = peek({ptr, 50}) -- read all values in the list into a
>> sequence
thanks! This is the kinda response i was looking for.
>> Could you let us know what you are working on?
I am working on a GNU/Linux Interprocess Communication wrapper for Euphoria.
It started out as just a socket wrapper but im goin to expand it further. Lots
of C code to deal with.
Right now i have a working socket wrapper but it needs more features. So that
is what im working on.
>> If I have got this totally wrong please let me know.
Actually this is what i was looking for. I will go and try what you suggested
now. Hopefully it will work.
>> All the best
thanks :)
>> Mark
--
evil, corruption and bad taste
^cense
|
Not Categorized, Please Help
|
|