[Omake] More Typos And Nit-Picks

Florian Hars hars at bik-gmbh.de
Fri Aug 31 07:31:43 PDT 2007


10.3.9  subrange

   $(subrange off, len, sequent) : value

 The variable is called sequence in all other examples

10.3.17  html-string

 s/escaped/escapes/

10.3.38  while

  In the last example i is never incremented

10.3.40  random, random-init

  s/form/from/

10.4.1  int / 13.1.4  Int

  31/32/63/64/nativeint/bignum?
  Does the number of free bytes on my disk array fit in an int?
  (Obviously not on every platform:

% echo $(int $(shell date +%s))
*** omake error:
   File -: line 1, characters 0-29
   not an integer: 1188568895
  )

10.6.1  foreach

    X =
       foreach(x, a b c)
          value $(x).c

    # Equivalent expression
    X = $(foreach $(fun x, $(x).c), abc)

  s/abc/a b c/

10.7.1  sequence-forall

  s/halds/holds/

11.1.2  node-type

    $(file-type nodes) : String Array
        files : Node Array

    The function file-type ...

  Node or file?


"whitespace is significant" (for what?)

  For example, 5.3 says the following on arrays literals:
  "Whitespace is significant on each line."
  But if you actually check it out:
$ osh
% a[]=
a>        a[]=
a>           foo bar
a>           baz
a>           .
- : <array
       "foo bar" : Sequence
       "baz" : Sequence>
       : Array
  you see that the whitespace within the line is completely insignificant
  and ignored while splitting the input into array elements. Only the
  line breaks are significant.

  This is aggravated by the fact that character sequence
  "whitespace is significant" describes  a different behaviour in
  "10.3.17  html-string":

% a[]=
a>        a[]=
a>           foo              bar
a>           .
- : <array
       "foo              bar" : Sequence>
       : Array
% b=$(html-string foo              bar)
- : <data "foo bar"> : String


More information about the Omake mailing list