Changes between Version 37 and Version 38 of FortressLanguageSpecificationErrata

Show
Ignore:
Timestamp:
05/07/09 12:59:40 (7 months ago)
Author:
sukyoungryu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FortressLanguageSpecificationErrata

    v37 v38  
    77In the sample program, the set expression syntax is not implicitly imported.  In order to use the following: 
    88{{{ 
     9#!fss 
    910  planets = { Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune } 
    1011}}} 
     
    1314 
    1415{{{ 
     16#!fss 
    1517 import Set.{...} 
    1618}}} 
     
    4143In order to use list aggregate literals, such as 
    4244{{{ 
     45#!fss 
    4346 l = <|0,1,2,3,4|> 
    4447}}} 
    4548you must first explicitly import a List implementation: 
    4649{{{ 
     50#!fss 
    4751 import ArrayList.{...} 
    4852}}} 
    4953or 
    5054{{{ 
     55#!fss 
    5156 import PureList.{...} 
    5257}}} 
     
    5560 
    5661{{{ 
     62#!fss 
    5763 import Set.{...} 
    5864 export Executable 
     
    6470Map aggregates do not work yet (#29). The following program 
    6571{{{ 
     72#!fss 
    6673 import Map.{...} 
    6774 export Executable 
     
    7885In the example, 
    7986{{{ 
     87#!fss 
    8088 value object Complex(settable real : Double, settable imaginary : Double = 0) 
    8189   opr +(self, other :Complex) = Complex(real + other.real , imaginary + other.imaginary) 
     
    8694 
    8795{{{  
     96#!fss 
    8897 value object Complex(settable real : RR, settable imaginary : RR = 0) 
    8998   opr +(self, other :Complex) = Complex(real + other.real , imaginary + other.imaginary) 
     
    108117 
    109118{{{ 
     119#!fss 
    110120  fn (x : Double) => if x < 0 then -x else x end 
    111121}}} 
     
    114124 
    115125{{{ 
     126#!fss 
    116127  fn (x : RR) => if x < 0 then -x else x end 
    117128}}} 
     
    123134In the example on p. 104 
    124135{{{ 
     136#!fss 
    125137 (a[i], b.x, c)UPD= f(t, u, v) 
    126138}}} 
     
    129141 
    130142{{{ 
     143#!fss 
    131144 (a[i], b.x, c) += f(t, u, v) 
    132145 (a[i], b.x, c) AND= f(t, u, v) 
     
    145158is the call to {{{m}}} below: 
    146159{{{ 
     160#!fss 
    147161  export Executable 
    148162