Here are some examples:
@string = "abcdef" object obj method foo(bar) return $0 end method bar return "Hello, World!" end end method foo(bar) return $0 end method bar return "Hello, World!" end list array array = ("abc","def","ghi") for i in (0..2) say "\{array[${i}]}" endfor for i in (2..0) say "\{array[${i}]}" endfor say "\{@string[5..0]}" say "\{@string[0..5]}" say "\{obj.foo(@string)}" say "\{obj.bar}" say "\{foo(@string)}" say "\{bar}" say "\{array[0..2]}" say "\{array[2..0]}" method get_randoms(a,b,c,d) @a = $0;@b = $1 @c = $2;@d = $3 list rands for i in (@a..@b) @r = random(@c..@d) rands += @r endfor return rands end list randoms randoms = get_randoms(1,10,a,z)
To download 3.7.9, you can visit any of the following links:
sourceforge
freecode
No comments:
Post a Comment