Table of Contents
Table of Contents
Preface.............................................................................. xiIntroduction........................................................................ 1
About the technology............................................................................. 1
Telescript model 1Telescript language 2Telescript engine 3Telesphere 4
About this manual................................................................................... 4
Audience 4Informal conventions 5Formal conventions 5References 5
Part One—Language Concepts......................................... 7
Object composition................................................................ 8
Operations............................................................................................. 8
The operation concept 8Defining an operation’s interface 8Defining an operation’s implementation 9Implementing a method with a block 9Maintaining local variables 10
Attributes............................................................................................. 10
The attribute concept 10Defining an attribute’s interface 10Defining an attribute’s implementation 11Maintaining properties 11
Constraints........................................................................................... 11
The constraint concept 11Defining a constraint’s type 12Defining a constraint’s passage 12Specifying a class 12Searching for a class 13
Object manipulation............................................................. 14
Object references................................................................................. 14
The reference concept 14Acquiring a protected reference 14Acquiring a voided reference 14Protecting objects 15
Object manipulation.............................................................................. 15
Copying an object 15Destroying an object 16
Object ownership................................................................................. 16
The ownership concept 16Isolating an object 17Locking an object 17Freezing an object 17Thawing an object 18Transferring ownership 18
Object aggregation............................................................... 19
Class definitions................................................................................... 19
The class concept 19The class family concept 19
General Magic, Inc.
Telescript Language Reference
.
TDE
1_0 Alpha
iii