Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Array Constants



Using ISE Eiffel, if your goal is to have a memory area which can be used
from C, then simply use MANAGED_POINTER. You can create it with the
appropriate size and you can use the `put_integer_XX' routines to insert the
values you want.

Regards,
Manu

-- 
------------------------------------------------------------------------
Eiffel Software
805-685-1006
http://www.eiffel.com
Customer support: http://support.eiffel.com
Product information: [EMAIL PROTECTED]
User group: http://groups.yahoo.com/group/ise_users/join
------------------------------------------------------------------------
"Brian_Heilig" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> In C if I want a pointer to memory containing constant data I can write:
>
> unsigned char stuff[] = { 1, 2, 3, 4, 5 };
>
> stuff is now a pointer to a memory location containing the sequence 1-5.
>
> What is the easiest way to do this in Eiffel (no external routines except
inline).
>
> Brian





<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.