Oberon-2 Programming with Windows
This book is a detailed introduction to programming in Oberon-2, the object-oriented successor of Pascal. Oberon-2 provides elegant support for programming using a unique blend of structured and object-oriented techniques. The book follows a hands-on appr
- PDF / 28,064,459 Bytes
- 377 Pages / 439.37 x 666.14 pts Page_size
- 72 Downloads / 268 Views
Springer Berlin Heidelberg New York Barcelona Budapest Hong Kong London Milan Paris Santa Clara Singapore Tokyo
Jorg R. Miihlbacher
Bernhard Leisch Brian Kirk Ulrich Kreuzeder
Oberon-2 Programming with Windows With 66 Figures
Springer
Additional material to this book can be downloaded from http://extras.springer.com
Preface This book is aimed at students who need to learn the basics of programming or who are studying computing. It is a "hands on" book containing many examples which start by illustrating basic Oberon-2 language features and gradually increase in scope to cover object-oriented programming concepts and constructs. Oberon-2 is a successor to the language Pascal, which was also designed by Prof. N. Wirth [Wir71J. It has quickly become a major language used for teaching purposes. The only thing you need for successfully working through the book is to have access to a computer running Windows 3.11 or Windows 95. The material in the book is useful to students of schools, colleges, and universities for teaching Oberon-2 and programming at an introductory level. The scope of the book is not focused on software engineering or objectoriented technology; other books mentioned in the reference section already cover these topics in much greater depth. However, the examples in the book have been designed with these topics firmly in mind. Currently the term "object-oriented" is very much in fashion, having taken over from structured programming of the 1970s and '80s. In this book we have taken the view that a structured programming approach can be used to teach the fundamentals of programming algorithms. The object-oriented approach is then brought in as a complementary way to think, analyze, design and program. It also provides richer techniques for achieving encapsulation and reuse of program implementations. Oberon-2 is often referred to as a hybrid language as it provides elegant support for programming using either structured or objectoriented programming, or indeed any practically useful combination of these two approaches. A CD-ROM containing POW! software for Windows is provided with the book. It consists of a programming support environment including an Oberon-2 compiler, libraries, and the source code for the examples. The software is royalty free for educational use and so may be freely used within educational establishments. The first two chapters of the book describe the installation of the POW! Borland-like environment and how to work with the integrated text editor, which includes many features to support the development of programs written in Oberon-2. The facility for creating and linking Windows DLLs (Dynamic Link Libraries) makes it possible to use existing DLL based libraries and to interoperate with other Windows programs written in languages other than Oberon-2, for example C and C++. In the text each Oberon-2 language construct is described using text, syntax diagrams, and also EBNF. This semi-formal definition of the language syntax can be skipped on first reading; full definitions