Search found 4 matches

by Stefano
Mon May 02, 2016 8:53 am
Forum: Oberon Language
Topic: Oberon Report Update 2016-05-01
Replies: 33
Views: 182485

Re: Oberon Report Update 2016-05-01

Isn't REAL a predeclared type so that REAL = INTEGER is a redeclaration? It's a predefined type e.g. like ABS . It is not a reserved word like BEGIN . e.g. in earlier versions of Oberon-07 you could have written: PROCEDURE REAL(i: INTEGER); BEGIN END REAL; Section 6.1 states 6.1. Basic types The fo...
by Stefano
Mon May 02, 2016 8:28 am
Forum: Oberon Language
Topic: Oberon Report Update 2016-05-01
Replies: 33
Views: 182485

Re: Oberon Report Update 2016-05-01

(I assume that qualident still cannot be a basic type.) qualident can be a basic type. There is an example of this use in the FileDir module in Project Oberon 2013 : DiskAdr = INTEGER; It is even possible to write REAL = INTEGER; but I wouldn't recommend it ;) This feature, i.e. being able to renam...
by Stefano
Tue Nov 05, 2013 11:30 am
Forum: Oberon Language
Topic: Nested procedures
Replies: 23
Views: 127629

Re: Nested procedures

Langugae report is now much clear. I think new compiler should also report an error when MODULE Nested; PROCEDURE Level1; PROCEDURE Level2A; BEGIN END Level2A; PROCEDURE Level2B; (* open a new scope here: only local, formal parameters and global objects are visible *) BEGIN Level2A (* compiler shoul...
by Stefano
Fri May 17, 2013 7:43 am
Forum: Oberon Language
Topic: Nested procedures
Replies: 23
Views: 127629

Nested procedures

According to Oberon 2007 report 2011 revision 4. Declarations and scope rules ... The scope extends textually from the point of the declaration to the end of the block (procedure or module) to which the declaration belongs and hence to which the object is local. ... 10. Procedure declarations ... In...