Tom
2003-07-28 22:11:24 UTC
"NB" == "Norman Black" writes:
you say it, that's iso M2 or M3 something, not Wirth's Modula-2.
NB> Nobody has mentioned it but M2 has object oriented language
NB> features (CLASS type, referenced based object) and also generic
NB> modules (sort of like Ada generics). These were additions to the
NB> original first ISO M2 standard.
NB>
NB> --
NB> Norman Black
NB> Stony Brook Software
NB>
NB> "Ondrej Hrabal" <***@wo.cz> wrote in message
NB> news:***@posting.google.com...
NB> > ***@yahoo.com (Deepabh Telang) wrote in message
NB> news:<***@posting.google.com>...
NB> > > Hi,
NB> > > many time i came accross these two names together. what are the
NB> > > differeces and similarities between the two languages?
NB> > >
NB> > > deepabh telang
NB> >
NB> > Oberon is a descendant of Modula-2 and Oberon-2 is a refinement of
NB> > Oberon. They are all strongly typed, have a high-level module system
NB> > (unlike C and C++), systematic definition of data types and control
NB> > constructs, and really beautiful syntax (e. g. compare
NB> > IF/ELSIF/ELSE/END to C and Pascal equivalents).
NB> >
NB> > Compared to Modula-2, Oberon added the following features:
NB> >
NB> > -Type extension (or inheritance) that allows the reuse of type
NB> > definitions. It also inherently adds polymorphism to the language,
NB> > thus allowing extensive code reuse.
NB> > -Run-time type introspection with the IS operator and WITH statement.
NB> >
NB> > On the other hand, some Modula-2 features were removed in the interest
NB> > of simplicity:
NB> > -Constrained (subrange) types
NB> > -Enumeration types (it's a pity, I think)
NB> > -Nested modules
NB> > -Use of record fields and module's exported identifiers without the
NB> > full path
NB> > -FOR statement, reintroduced in Oberon-2
NB> >
NB> > Oberon-2 added type-bound procedures to implement objects' methods,
NB> > while the original Oberon relied on procedure variables.
NB> > The most recent refinement of Oberon-2 is called Component Pascal, but
NB> > there are also other dialects.
NB> >
NB> > Ondrej
NB>
you say it, that's iso M2 or M3 something, not Wirth's Modula-2.
NB> Nobody has mentioned it but M2 has object oriented language
NB> features (CLASS type, referenced based object) and also generic
NB> modules (sort of like Ada generics). These were additions to the
NB> original first ISO M2 standard.
NB>
NB> --
NB> Norman Black
NB> Stony Brook Software
NB>
NB> "Ondrej Hrabal" <***@wo.cz> wrote in message
NB> news:***@posting.google.com...
NB> > ***@yahoo.com (Deepabh Telang) wrote in message
NB> news:<***@posting.google.com>...
NB> > > Hi,
NB> > > many time i came accross these two names together. what are the
NB> > > differeces and similarities between the two languages?
NB> > >
NB> > > deepabh telang
NB> >
NB> > Oberon is a descendant of Modula-2 and Oberon-2 is a refinement of
NB> > Oberon. They are all strongly typed, have a high-level module system
NB> > (unlike C and C++), systematic definition of data types and control
NB> > constructs, and really beautiful syntax (e. g. compare
NB> > IF/ELSIF/ELSE/END to C and Pascal equivalents).
NB> >
NB> > Compared to Modula-2, Oberon added the following features:
NB> >
NB> > -Type extension (or inheritance) that allows the reuse of type
NB> > definitions. It also inherently adds polymorphism to the language,
NB> > thus allowing extensive code reuse.
NB> > -Run-time type introspection with the IS operator and WITH statement.
NB> >
NB> > On the other hand, some Modula-2 features were removed in the interest
NB> > of simplicity:
NB> > -Constrained (subrange) types
NB> > -Enumeration types (it's a pity, I think)
NB> > -Nested modules
NB> > -Use of record fields and module's exported identifiers without the
NB> > full path
NB> > -FOR statement, reintroduced in Oberon-2
NB> >
NB> > Oberon-2 added type-bound procedures to implement objects' methods,
NB> > while the original Oberon relied on procedure variables.
NB> > The most recent refinement of Oberon-2 is called Component Pascal, but
NB> > there are also other dialects.
NB> >
NB> > Ondrej
NB>
--
------------------------------------------------------------------------
Posted with Amiga NewsRog
------------------------------------------------------------------------
------------------------------------------------------------------------
Posted with Amiga NewsRog
------------------------------------------------------------------------