[BLACKBOX] Anonymous Types (was: Matrix slices - syntax)

From: [at]} <Chris>
Date: Fri, 7 May 2010 11:21:09 +0930

----boundary-LibPST-iamunique-167107035_-_-
Content-type: text/plain

> From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
> Behalf Of Douglas G. Danforth
> Sent: Thursday, 6 May 2010 8:26 AM
> To: BLACKBOX{([at]})nowhere.xy
> Subject: Re: [BLACKBOX] Matrix slices - syntax
>
>> René Dorta wrote:
>>
>> This one is really curious, if you declare:
>> PROCEDURE Q3 (IN v: ARRAY 3 OF REAL); BEGIN END Q3;
>> The compiler accepts it, but there is no valid
>> call to this procedure, it becomes perfectly useless.
>
> Right.
> It would seem that the definition of arguments to a
> procedure would need to change where
> the idea of "named type" vs "type" would have to be
> introduced so that
> ARRAY OF 3 REAL
> would be a type but it is not a named whereas
> TYPE V3 = ARRAY OF 3 REAL
> would have V3 being a named type.
>
> That is just a quick, off the cuff, comment without
> much thought behind it.
>
> -Doug
>
 
Note, however, that the following IS potentially useful:
 
 PROCEDURE P(IN v: ARRAY 3 OF CHAR);
 
A valid call to this procedure is:
 
  P("xx");
  
Regards,
Chris Burrows
 
CFB Software
Astrobe: ARM Oberon-07 Development System
http://www.astrobe.com
 

 


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-167107035_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA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This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:32 UTC