(j3.2006) Question about co-arrays

Aleksandar Donev donev1
Fri Feb 9 15:47:31 EST 2007


On Friday 09 February 2007 12:26, Rob James wrote:
> What about INTEGER(C_INTPTR_T)? 
Yes, I forgot about this constant, thanks.
> Assuming that intptr_t exists for the 
> companion C processor, this should work just fine.
On any reasonable implementation, I would expect such an integer type to exist 
and the transfer to work well.
> It's the same size as a 
> C_PTR, unless I've missed something.
Well, this is a circular argument. We don't allow C_PTR in I/O because it has 
private components, i.e., we don't know what's inside it, yet along how big 
it is. Sure, on any sensible implementation it will just be a C void* pointer 
(which is guaranteed to fit inside an intptr_t, not necessarily be the same 
size as...I think). But if we are pretending like it is an opaque type then 
let's keep pretending that, rather than saying it is really an integer.
In any case, this is not really worth arguing over. As Andy said, I can find 
workarounds.
Best,
Aleks



More information about the J3 mailing list