User Tools

Site Tools


at:tutorial:objects

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
at:tutorial:objects [2007/06/29 14:44] jorgeat:tutorial:objects [2007/06/29 14:58] jorge
Line 94: Line 94:
  
 ===== Encapsulation ===== ===== Encapsulation =====
-In AmbientTalk, all fields and methods are "public" via selection. Still, a field or method can be made "private" by means of lexical scoping. The following code shows the definition of an object inside the definition of a function. As such, the fields and methods of this object cannot be accessed directly from outside the funuction.+In AmbientTalk, all fields and methods are "public" via selection. Still, a field or method can be made "private" by means of lexical scoping. The following code shows the definition of an object inside the definition of a function. The fields and methods of this object cannot be accessed directly from outside the funuction.
  
 <code> <code>
Line 104: Line 104:
 </code> </code>
  
-This instruction fails:+Due to the encapsulation of this object the following instruction fails:
  
 <code> <code>
Line 111: Line 111:
   <object:5068254>   <object:5068254>
 </code> </code>
- 
- 
at/tutorial/objects.txt · Last modified: 2013/05/17 20:23 by tvcutsem