Re: [ooc-compiler] Understanding system flags
Brought to you by:
mva
|
From: Michael v. A. <mic...@gm...> - 2006-07-03 05:49:28
|
On 01/07/06, Frank Copeland <fj...@th...> wrote: > > > On 28/06/06, *Frank Copeland* <fj...@th... > > <mailto:fj...@th...>> wrote: > [...] > > On the other hand, Module C declares a C string as: > > > > TYPE > > char* = CHAR; > > string* = POINTER [CSTRING] TO ARRAY OF char; > > Michael van Acken wrote: > > > The definition from C is in full > > > > string* = POINTER [NO_LENGTH_INFO, NO_DESCRIPTOR, CSTRING] TO ARRAY OF > > char; > > > > due to the implicit flags induced by INTERFACE. > > Does it matter whether the flags are attached to the POINTER part of the > declaration or the ARRAY part? Would: > > string* = POINTER [CSTRING] TO ARRAY [NO_LENGTH_INFO, NO_DESCRIPTOR] OF > char; > > be an equivalent declaration? My mistake. I have not checked with the actual implementation, but the NO_* flags are almost certainly attached to the ARRAY. Your declaration is the correct one. -- mva |