Search found 54 matches

by augustk
Sat Sep 17, 2011 3:21 pm
Forum: Oberon Language
Topic: Further revision of Oberon-07
Replies: 26
Views: 168617

Re: Further revision of Oberon-07

That is a pity - I would have found it useful. As far as I understand it's the assignment compatibility between strings and character arrays that allows a string to be passed to a procedure expecting a character array (even though no copying of characters take place). So if character variables were...
by augustk
Sat Sep 17, 2011 11:08 am
Forum: Oberon Language
Topic: Further revision of Oberon-07
Replies: 26
Views: 168617

Re: Further revision of Oberon-07

Maybe so in the 2008 version but not any more. Consider the following valid Oberon-07 (2011) statements: Your example only shows the assignment compatibility between single-character strings and CHAR and between strings and character arrays. Both "X" and "XX" are still just strings. You previously ...
by augustk
Sat Sep 17, 2011 1:21 am
Forum: Oberon Language
Topic: Further revision of Oberon-07
Replies: 26
Views: 168617

Re: Further revision of Oberon-07

I beg to differ in this case. The expression "C" is a string and nothing else - it is a central property of Oberon-07 that each literal constant (and expression) has a unique and unambiguous type. The phrase "character constant" is not even mentioned in the Oberon-07/11 manual. Where in the manual d...
by augustk
Fri Sep 16, 2011 9:14 pm
Forum: Oberon Language
Topic: Further revision of Oberon-07
Replies: 26
Views: 168617

Re: Further revision of Oberon-07

Another change is the removal of constant parameters. In Oberon-07/11 non-scalar value parameters can not be assigned to and are passed as constant references. This is a great move I think as the constant parameter was only introduced as an optimization feature. It is also interesting to note the as...