Programming in Dylan

Paperback Engels 1996 9783540760535
Verwachte levertijd ongeveer 9 werkdagen

Samenvatting

Programming in Dylan is aimed at programmers who are already familiar with languages such as Pascal or C but who, as yet, have no knowledge of object-oriented languages. The author takes the reader through the development of Dylan by Apple and introduces the concept of object oriented languages, comparing Dylan to other languages such as CLOS, Smalltalk and C++. The author looks at fundamental concepts of the Dylan language before moving on to present the basic types (Boolean, vectors, strings etc.). Variables, expressions and assignment, and functions (both named and anonymous) are covered in detail. The Dylan class is introduced in its simple form and generic functions and library classes are discussed in depth. The author shows how modularisation needs to be used if large applications are to be developed and illustrates how to construct program libraries. A simulation and modelling example runs through the book.

Specificaties

ISBN13:9783540760535
Taal:Engels
Bindwijze:paperback
Aantal pagina's:254
Uitgever:Springer London
Druk:0

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

1 Introduction.- 1.1 Introduction.- 1.2 The Aim of this Book.- 1.3 The Organisation of this Book.- 2 Object-Oriented Programming.- 2.1 Introduction.- 2.2 Encapsulation and Abstraction.- 2.3 Classes and Inheritance.- 2.3.1 Classes.- 2.3.2 Inheritance.- 2.4 Abstract and Concrete Classes.- 2.5 Methods and Overloading.- 2.6 Static and Dynamic Binding.- 2.7 Building Object-Oriented Programs.- 3 An Example Dylan Program.- 3.1 Introduction.- 3.2 Specification.- 3.3 Amounts and Time.- 3.4 Quantities.- 3.5 Foodstuffs.- 3.6 The Database Structure.- 3.7 The Shopping Database.- 3.8 The Shopping List.- 3.9 Main.- 4 Basic Types.- 4.1 Introduction.- 4.2 Booleans.- 4.3 Characters.- 4.4 Strings.- 4.5 Symbols.- 4.6 Numbers.- 4.6.1 Properties.- 4.6.2 Arithmetic Functions.- 4.7 Vectors.- 4.8 Lists.- 4.9 Comparison Operations.- 5 Expressions and Assignment.- 5.1 Introduction.- 5.2 Types and Variables.- 5.2.1 Types.- 5.2.2 Variables.- 5.3 Assignment Expressions.- 5.4 Conditional Expressions.- 5.4.1 If.- 5.4.2 Unless.- 5.4.3 Case.- 5.4.4 Select.- 5.5 Iteration.- 5.5.1 While.- 5.5.2 Until.- 5.5.3 For.- 5.6 Local Bindings.- 5.7 Multiple Values.- 5.7.1 Returning Multiple Values.- 5.7.2 Binding Multiple Values.- 5.8 Blocks and Exits.- 5.8.1 Begin-End Blocks.- 5.8.2 Blocks.- 5.8.3 Restrictions on Non-Local Exits.- 6 Methods and Generic Functions.- 6.1 Introduction.- 6.2 The Reason for Using Methods.- 6.3 Named Methods.- 6.3.1 Syntax.- 6.3.2 Methods—Examples.- 6.3.3 Parameters.- 6.4 Bare Methods.- 6.5 Local Methods.- 6.6 Higher-Order Methods.- 6.7 Generic Functions.- 6.7.1 Syntax.- 6.7.2 Parameter List Congruency.- 6.8 Operations on Functions.- 7 Classes, Instances and Inheritance.- 7.1 Introduction.- 7.2 A Simple Example.- 7.3 Class Definitions.- 7.3.1 Class Definition: Basics.- 7.3.2 Slot Definitions: Details.- 7.4 Instance Creation.- 7.4.1 Basic Mechanisms.- 7.4.2 Keyword Initialisation.- 7.4.3 Class Allocated Slots.- 7.4.4 Testing the Initialisation of a Slot.- 7.5 Inheritance.- 7.5.1 Inheritance and the Class Precedence List.- 7.5.2 Singletons.- 7.5.3 Method Specificity.- 7.5.4 Calling More General Methods.- 7.6 Classes and Types.- 7.7 Introspecting on Classes and Functions.- 7.8 Control of Dynamism.- 8 Conditions and Errors.- 8.1 Introduction.- 8.2 The Dylan Exception Facility.- 8.3 Specification.- 8.3.1 Format Strings.- 8.3.2 Condition Classes.- 8.3.3 The signal Function.- 8.3.4 Basic Handler.- 8.3.5 Other Signalling Operators.- 8.3.6 Introspection on Conditions and Handlers.- 9 Modules and Libraries.- 9.1 Introduction.- 9.2 Modules.- 9.3 Libraries.- A Example Program Listing.- A.l Introduction.- A.2 Money.- A.3 Time.- A.4 Physical Quantities.- A.5 Foodstuffs.- A.6 Food-table and The Database.- A.7 Shopping.- A.8 Shopping Lists.- A.9 The Main Method.

Managementboek Top 100

Rubrieken

    Personen

      Trefwoorden

        Programming in Dylan