at:tutorial:modular
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
at:tutorial:modular [2011/05/23 13:46] – tvcutsem | at:tutorial:modular [2013/05/17 20:24] (current) – adjusted tvcutsem | ||
---|---|---|---|
Line 119: | Line 119: | ||
In this section, we describe how the '' | In this section, we describe how the '' | ||
+ | |||
==== import as trait composition ==== | ==== import as trait composition ==== | ||
Line 162: | Line 163: | ||
}; | }; | ||
def each: clo { | def each: clo { | ||
- | start.to: end do: clo | + | start.to: end-1 do: clo |
}; | }; | ||
}; | }; | ||
Line 183: | Line 184: | ||
So, '' | So, '' | ||
- | Note that in AmbientTalk, | + | Note that in AmbientTalk, |
< | < | ||
Line 291: | Line 292: | ||
In the [[at: | In the [[at: | ||
+ | |||
===== Exception Handling ===== | ===== Exception Handling ===== | ||
Line 314: | Line 316: | ||
</ | </ | ||
- | Note that a new instance of an object named '' | + | Note that a new instance of an object named '' |
< | < | ||
- | deftype DivisionByZero <: lobby.at.types.Exception; | + | deftype DivisionByZero <: lobby.at.lang.types.Exception; |
- | def XDivisionByZero := lobby.at.exceptions.createException(DivisionByZero); | + | def XDivisionByZero := lobby.at.lang.exceptions.createException(DivisionByZero); |
</ | </ | ||
Line 374: | Line 376: | ||
def contains(tbl, | def contains(tbl, | ||
{ |return| | { |return| | ||
- | 1.to: tbl.length | + | 1.to: tbl.length do: { |i| |
if: (tbl[i] == elt) then: { | if: (tbl[i] == elt) then: { | ||
return(true) | return(true) |
at/tutorial/modular.1306151207.txt.gz · Last modified: 2013/02/26 15:52 (external edit)