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

From: H. v. L. <"H.>
Date: Mon, 13 Dec 2004 10:08:22 +0100

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

On Mon, 13 Dec 2004 16:55:47 +1030, CFB Software <info{([at]})nowhere.xy
wrote:

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

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

In my opinion this is not an accident.
With one exception, added in BB 1.4 and not existing in Oberon or BB 1.3,
LEN always returns the length of the type, be the parameter a type or a
variable.
The exception of course is the explicit reference to a variable via the
$ operator which moreover must be a string variable.
All this seems to indicate that originally the type was meant and the
possibility of a variable was added for convenience.

Regards

H. v. Lavergne
--------------------------------------------

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-163503266_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMx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RpYXRlbHksIHdpdGhvdXQgY3JlYXRp
bmcgYW55IG92ZXJoZWFkLlxwYXINClxwYXINCmIpIElmLCBmb3Igc29tZSByZWFzb24sIHlvdSBj
YW5ub3QgcG9zdCBmcm9tIHRoZSBhZGRyZXNzLCBieSB3aGljaCB5b3UgYXJlIHN1YnNjcmliZWQs
IHlvdXIgbWVzc2FnZSB3aWxsIGJlIG1vZGVyYXRlZCB0byBhdm9pZCBzcGFtLiBQbGVhc2UgdW5k
ZXJzdGFuZCB0aGF0IG1vZGVyYXRpb24gd2lsbCBvZnRlbiBjYXVzZSBzb21lIGRlbGF5LCBpbiBw
YXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMgb3IgaG9seWRheXMuXHBhcg0KfQ=


----boundary-LibPST-iamunique-163503266_-_---
Received on Mon Dec 13 2004 - 10:08:22 UTC

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