Talk:Eiffel (programming language)/Expanded draft: Difference between revisions

Content deleted Content added
m Removed needless piping in 1 link.
 
Line 364:
* choice (case)
 
Unlike many object-oriented languages, but like [[Smalltalk programming language|Smalltalk]], Eiffel does not permit an assignment into fields of other objects, as this violates the principles of information hiding and data abstraction. The assignment instruction can only change the value of a field of the current object, or a [[Subprogram#Local variables, recursion and re-entrancy|local variable]] of the current routine. All changes to other objects must be accomplished by calls to features of that object.
 
The loop instruction includes a '''from''' clause that takes care of loop initialization. The programmer must express the stepping as part of the loop. For example: