Should a typename be a valid parameter for the LEN function?

From: CFB Software <"CFB>
Date: Mon, 13 Dec 2004 16:55:47 +1030

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

The built-in function LEN in BlackBox accepts a type T as an actual
parameter as well as a variable of type T.

For example, given the declarations:

TYPE
  IntArray = ARRAY 10 OF INTEGER;

VAR
  ia: IntArray;

the compiler will accept either of the following forms:

  LEN(ia)
  LEN(IntArray)

Is the acceptance of a typename as a parameter intentional or an
accident?

I can't decide either way by looking at the language report, but the
following lead me to think that it is accidental:

1) I cannot find any examples in the documentation where a type rather
than a variable is used as a parameter to LEN.

2) A parameter named v (for variable?) is used in the definition of LEN
i.e. LEN(v) whereas T (for TYPE?) is used in the definition of MAX i.e.
MAX(T) which does expect a type.

Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp


--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-562984838_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQ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xwYXINClxwYXINCmEpIFRvIHBvc3QgeW91IHNob3VsZCB1c2UgdGhlIHNhbWUgYWRkcmVz
cyBieSB3aGljaCB5b3UgYXJlIHN1YnNjcmliZWQgdG8gdGhlIG1haWxpbmcgbGlzdC4gVGhhdCB3
YXksIHRoZSBsaXN0IHNlcnZlciB3aWxsIHJlY29nbml6ZSB5b3UgYXMgc3Vic2NyaWJlciBhbmQg
Zm9yd2FyZCB5b3VyIHBvc3RpbmcgaW1tZWRpYXRlbHksIHdpdGhvdXQgY3JlYXRpbmcgYW55IG92
ZXJoZWFkLlxwYXINClxwYXINCmIpIElmLCBmb3Igc29tZSByZWFzb24sIHlvdSBjYW5ub3QgcG9z
dCBmcm9tIHRoZSBhZGRyZXNzLCBieSB3aGljaCB5b3UgYXJlIHN1YnNjcmliZWQsIHlvdXIgbWVz
c2FnZSB3aWxsIGJlIG1vZGVyYXRlZCB0byBhdm9pZCBzcGFtLiBQbGVhc2UgdW5kZXJzdGFuZCB0
aGF0IG1vZGVyYXRpb24gd2lsbCBvZnRlbiBjYXVzZSBzb21lIGRlbGF5LCBpbiBwYXJ0aWN1bGFy
IG92ZXIgd2Vla2VuZHMgb3IgaG9seWRheX19ACwgc2VuZA==


----boundary-LibPST-iamunique-562984838_-_---
Received on Mon Dec 13 2004 - 07:25:47 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:28 UTC