Changes between Version 37 and Version 38 of FortressLanguageSpecificationErrata
- Timestamp:
- 05/07/09 12:59:40 (7 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FortressLanguageSpecificationErrata
v37 v38 7 7 In the sample program, the set expression syntax is not implicitly imported. In order to use the following: 8 8 {{{ 9 #!fss 9 10 planets = { Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune } 10 11 }}} … … 13 14 14 15 {{{ 16 #!fss 15 17 import Set.{...} 16 18 }}} … … 41 43 In order to use list aggregate literals, such as 42 44 {{{ 45 #!fss 43 46 l = <|0,1,2,3,4|> 44 47 }}} 45 48 you must first explicitly import a List implementation: 46 49 {{{ 50 #!fss 47 51 import ArrayList.{...} 48 52 }}} 49 53 or 50 54 {{{ 55 #!fss 51 56 import PureList.{...} 52 57 }}} … … 55 60 56 61 {{{ 62 #!fss 57 63 import Set.{...} 58 64 export Executable … … 64 70 Map aggregates do not work yet (#29). The following program 65 71 {{{ 72 #!fss 66 73 import Map.{...} 67 74 export Executable … … 78 85 In the example, 79 86 {{{ 87 #!fss 80 88 value object Complex(settable real : Double, settable imaginary : Double = 0) 81 89 opr +(self, other :Complex) = Complex(real + other.real , imaginary + other.imaginary) … … 86 94 87 95 {{{ 96 #!fss 88 97 value object Complex(settable real : RR, settable imaginary : RR = 0) 89 98 opr +(self, other :Complex) = Complex(real + other.real , imaginary + other.imaginary) … … 108 117 109 118 {{{ 119 #!fss 110 120 fn (x : Double) => if x < 0 then -x else x end 111 121 }}} … … 114 124 115 125 {{{ 126 #!fss 116 127 fn (x : RR) => if x < 0 then -x else x end 117 128 }}} … … 123 134 In the example on p. 104 124 135 {{{ 136 #!fss 125 137 (a[i], b.x, c)UPD= f(t, u, v) 126 138 }}} … … 129 141 130 142 {{{ 143 #!fss 131 144 (a[i], b.x, c) += f(t, u, v) 132 145 (a[i], b.x, c) AND= f(t, u, v) … … 145 158 is the call to {{{m}}} below: 146 159 {{{ 160 #!fss 147 161 export Executable 148 162

