Re: Difference between '\0' and 0
Chris Croughton wrote:[color=blue]
> On Mon, 30 May 2005 20:51:41 GMT, August Karlstrom
> <fusionfive@com hem.se> wrote:
>
>[color=green]
>>Chris Croughton wrote:
>>[color=darkred]
>>>If I want a strongly typed language I know where to find Ada <g>...[/color]
>>
>>Or why not Oberon-2.[/color]
>
>
> Not powerful enough. For instance, one of the features I like in Ada is
> declaring variables with specific ranges (-3..7 etc.), so that they
> can't go out of bound without throwing an exception. Oberon-2 was, I
> gather, created as a language for teaching, like Pascal (but later so it
> learnt from some of the pitfalls of early Pascal), Ada was designed for
> Real World(tm) tasks.
>
> (That's not a criticism of Oberon-2, which is fine for its purpose, it's
> just not as good for my purposes...)[/color]
No, this is a quite common misconception that is probably one of the
reasons the language isn't more widespread than it is. Oberon/Oberon-2
is not merely a teaching language. It was used to build an entire
operating system, namely Oberon. In Oberon-2 you isolate the potentially
dangerous low level code in so called SYSTEM modules. If you import the
SYSTEM pseudo module you can do *anything*. I recommend reading Stefan
Metzeler's article at
http://www.amadeus-3.com/main_files/oberon2vsCPP.php (although he is
biased in favour of the product he sells, he has some good points).
-- August
Chris Croughton wrote:[color=blue]
> On Mon, 30 May 2005 20:51:41 GMT, August Karlstrom
> <fusionfive@com hem.se> wrote:
>
>[color=green]
>>Chris Croughton wrote:
>>[color=darkred]
>>>If I want a strongly typed language I know where to find Ada <g>...[/color]
>>
>>Or why not Oberon-2.[/color]
>
>
> Not powerful enough. For instance, one of the features I like in Ada is
> declaring variables with specific ranges (-3..7 etc.), so that they
> can't go out of bound without throwing an exception. Oberon-2 was, I
> gather, created as a language for teaching, like Pascal (but later so it
> learnt from some of the pitfalls of early Pascal), Ada was designed for
> Real World(tm) tasks.
>
> (That's not a criticism of Oberon-2, which is fine for its purpose, it's
> just not as good for my purposes...)[/color]
No, this is a quite common misconception that is probably one of the
reasons the language isn't more widespread than it is. Oberon/Oberon-2
is not merely a teaching language. It was used to build an entire
operating system, namely Oberon. In Oberon-2 you isolate the potentially
dangerous low level code in so called SYSTEM modules. If you import the
SYSTEM pseudo module you can do *anything*. I recommend reading Stefan
Metzeler's article at
http://www.amadeus-3.com/main_files/oberon2vsCPP.php (although he is
biased in favour of the product he sells, he has some good points).
-- August
Comment