Content deleted Content added
No edit summary |
|||
Line 183:
== Unanswered questions ==
After reading the article through I find myself lacking a lot of elementary information on the language. I don't know what term Oberon uses for functions (proc? function? subroutine?).
I don't know if it has record structures or something comparable. I don't know how its objects differ from those in C++, just that they differ. I don't know whether a language feature must be declared before use, as in Pascal. I don't know whether arrays of different sizes are considered different types, one of the most criticized features of Pascal, and which most other modern languages try to circumvent. I don't know if the language supports JAVA-style interfaces. I don't know what the entry point of the programming is -- a "main" routine as in C? Sample source code would help, but the only sample source code I've seen was on this Talk page, not in the main article. In short, this article needs a lot of work. [[User:CharlesTheBold|CharlesTheBold]] ([[User talk:CharlesTheBold|talk]]) 01:42, 17 June 2012 (UTC) Both procedures and functions that return a result are called procedures.
Oberon has record structures. Additionally, unlike Pascal and Modula-2 these are extensible and so variant records are no longer required.
Identifiers must be declared before use apart from pointer references.
Name-compatibility is used rather than structure-compatibility as in Pascal and Modula-2. However, the dimensionless 'ARRAY OF <type>' can be used to allow arrays of arbitrary size to be passed as procedure parameters.
Interfaces are not supported.
On a suitably capable operating system (e.g. the Oberon operating system) any parameterless exported procedure may be an entry point - programs are constrained to just one entry point.
Note that this is an encyclopedia article not a Language Reference. Refer to the external links for more in-depth information about the language.
[[User:Chris Burrows|Chris Burrows]] ([[User talk:Chris Burrows|talk]]) 11:50, 17 June 2012 (UTC)
|