Troy:

   thank you sharing the tip. Off the top of my head I would use 
meaningful labels.

Note that the resource compiler is not a part of the language. It is an 
add-on tool. I personally use it a lot and I always find it very helpful, 
but it has its limits.

If Oberon/CP was used to develop Linux, we would have seen gazzilions of 
such add ons. I am also afraid we would have seen operator overloading and 
what-not GNU extensions to the language.

Cheers,

W.

On Mon, 27 Dec 2010, Stephen R. Troy wrote:

> I have a program which uses an array, and I defined meaningful labels as constants to help me remember the
> meaning of each array element.  And I placed text fields in a window so I could monitor the contents of the
> array, and exported the constant labels as well as the array.  BUT when I set the link for each text field as
> "array[labelA]", "array[labelB]", etc., nothing showed up in the text fields.  Finally I changed the links to
> "array[0]", "array[1]", etc. and that worked.  The resource compiler part of BlackBox may be a bit rudimentary.
> Steve Troy
>       -------- Original Message --------
>       Subject: Re: [BLACKBOX] Re [BLACKBOX] Seasons Greetings from Linuxland
>       From: Wojtek Skulski <skulski@PAS.ROCHESTER.EDU>
>       Date: Mon, December 27, 2010 7:41 pm
>       To: BLACKBOX@LISTS.OBERON.CH
>
>       > The following hypothetical examples are intended to show what a programmer
>       > could concoct if he has muddled thinking regarding boolean logic [snip]
>
>       My own conclusion is that one can write C in any language. One also can
>       write reasonable code in C. Some languages encourage good attitude while
>       others just the opposite, but at the end of the day it is the attitude,
>       which differentiates the masters from their opposites.
>
>       Playing devil's advocate, I remember my utter surprise when I read
>       statements in Project Oberon like "IF mouse = 1 THEN...". The mouse keys
>       were numbered 1,2,3 (or 0,1,2, don't remember) and these numbers were used
>       literally in the code published in the book (!!). A bit shameful, was it
>       not? In later versions the literal constants we replaced with ML, MM, and
>       MR, as they should have been from the beginning.
>
>       Even our gurus have had their bad days.
>
>       W.

----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV@LISTS.OBERON.CH