Re: Named Integers

From: [at]} <Stan>
Date: Sun, 21 Nov 2004 14:01:11 -0800

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

On Nov 21, 2004, at 12:51 PM, Hof, Philipp wrote:

>> now, what possible problems could they cause?
>
> Just some hurry thoughts:
>
> *******************************************
>
> Problem 1:
>
> TYPE
> Colour* = (red := 3, blue, green);
> CarColour* = (blue, yellow, orange);
>
> If I understand the idea right this would be identical to:
>
> CONST
> ...
> blue* = 4;
> blue* = 1;

I see little use for this complicating feature and
would not allow it. All named integers would
start at 0, and increase sequentially by 1.

> *******************************************
>
> Problem 2:
>
> TYPE
> Colour* = (red = 3, blue, green);
> (* green = 5 *)
>
> changes to:
>
> TYPE
> Colour* = (red = 3, blue, lightBlue, green);
> (* green = 6 *)
>
> -> Causes a problem to existing (compiled) modules using 'Colour'
>
> *******************************************

Same comment applies. Do not supply that
feature. There are many instances where
named integers would be a big improvement,
and only relatively few that would benefit
from relaxing the restriction that they all
start at 0 and increment by 1.

Keep it simple.

Stan

J. Stanley Warford
Professor of Computer Science
Pepperdine University
Malibu, CA 90263
Stan.Warford{([at]})nowhere.xy
310-506-4332

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

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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lz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5b3UgYXMgc3Vic2NyaWJlciBhbmQgZm9yd2FyZCB5b3VyIHBvc3Rp
bmcgaW1tZWRpYXRlbHksIHdpdGhvdXQgY3JlYXRpbmcgYW55IG92ZXJoZWFkLlxwYXINClxwYXIN
CmIpIElmLCBmb3Igc29tZSByZWFzb24sIHlvdSBjYW5ub3QgcG9zdCBmcm9tIHRoZSBhZGRyZXNz
LCBieSB3aGljaCB5b3UgYXJlIHN1YnNjcmliZWQsIHlvdXIgbWVzc2FnZSB3aWxsIGJlIG1vZGVy
YXRlZCB0byBhdm9pZCBzcGFtLiBQbGVhc2UgdW5kZXJzdGFuZCB0aGF0IG1vZGVyYXRpb24gd2ls
bCBvZnRlbiBjYXVzZSBzb21lIGRlbGF5LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMgb3Ig
aG9seWRheX19AAAhAAAAAA==


----boundary-LibPST-iamunique-98135523_-_---
Received on Sun Nov 21 2004 - 23:01:11 UTC

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