Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword or section
Like this
2Activity
×

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Telescript Language Reference

Telescript Language Reference

Ratings: (0)|Views: 2,989|Likes:
Published by pablo_marx

More info:

Published by: pablo_marx on Nov 23, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less

11/07/2011

pdf

text

original

 
Telescript Language Reference
October 1995General Magic, Inc.
420 North Mary AvenueSunnyvale, CA 94086
 
The Telescript Language Reference
©
1991 - 1995 General Magic, Inc.
All rights reserved
Copyright and Trademark 
The general idea of a remote programming language is in the public domain. Anyone is freeto formulate his or her own expression of this idea by devising a unique language structure,syntax and vocabulary. However, General Magic exercised a great deal of originalexpression when choosing the structure, syntax and vocabulary of the Telescript language.Therefore, General Magic believes that it owns the copyright in the structure, syntax andvocabulary of the Telescript programming language. General Magic believes that no oneelse can create a Telescript language interpreter without violating its copyright. GeneralMagic is also seeking patent protection on some of the novel inventions in the Telescriptarchitecture and software agent functionality. Finally, General Magic owns the trademark “Telescript,” which has been registered in the U.S. and many other jurisdictions. GeneralMagic uses the “Telescript” trademark to identify General Magics Telescript software.General Magic wants to promote the use of the Telescript language as an enablingtechnology for creating “smart” networks. Therefore, we have an open, non-discriminatorypolicy on licensing our Telescript software for research and development, and commercialpurposes. We also encourage you to write programs in the Telescript language. Feel free toincorporate any of the sample programs contained in this document into your programs.General Magic, the General Magic logo, the Magic Cap logo, the Telescript logo, MagicCap, Telescript, and the rabbit-from-a-hat logo are trademarks of General Magic, andmay be registered in certain jurisdictions. All other trademarks and service marks are theproperty of their respective owners.
Limit of Liability/Disclaimer of WarrantyTHIS BOOK IS PROVIDED TO YOU “AS IS.
Even though General Magic hasreviewed this book in detail,
GENERAL MAGIC MAKES NO REPRESENTATIONOR WARRANTIES, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THEACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS BOOK.GENERAL MAGIC SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIESOR MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSEAND SHALL IN NO EVENT BE LIABLE FOR ANY LOSS OF PROFIT OR ANYOTHER COMMERCIAL DAMAGE, INCLUDING BUT NOT LIMITED TOSPECIAL, INCIDENTAL, CONSEQUENTIAL, OR OTHER DAMAGES, EVEN IFMAGIC KNOWS OR SHOULD KNOW OF THE POSSIBILITY OF SUCHDAMAGES
. Some states do not allow for the exclusion or limitation of impliedwarranties or incidental or consequential damage. So, the exclusions in this paragraph mightnot apply to you. This warranty gives you specific legal rights. You may also have other rightswhich vary from state to state.
Important to Someone
Restricted Rights. For defense agencies: Use, duplication, or disclosure is subject to therestrictions set forth in subparagraph (c)(1)(ii) of DFAR section 252.227-7013 and itssuccessors. For civilian agencies: Use, duplication, or disclosure is subject to the restrictionsset forth in subparagraphs (a) through (d) of FAR section 52.227-19 and its successors.Unpublished—rights reserved under the copyright laws of the United States.General Magic, Inc.420 North Mary AvenueSunnyvale, CA 94086 USATel.: 408 774 4000Fax: 408 774 4010E-mail: dev-info@genmagic.comURL: http://www.genmagic.com/ 
Patent Pending
Portions of the Magic Cap software and the Telescript software are patent pending in theUnited States and other countries.
ii
General Magic, Inc.
Telescript Language Reference 
.
TDE
1_0 Alpha
ii
 
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 operations interface 8Defining an operations implementation 9Implementing a method with a block 9Maintaining local variables 10
Attributes............................................................................................. 10
The attribute concept 10Defining an attributes interface 10Defining an attributes implementation 11Maintaining properties 11
Constraints........................................................................................... 11
The constraint concept 11Defining a constraints type 12Defining a constraints 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

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->