Commit Graph

2 Commits

Author SHA1 Message Date
Julien Fischer
f89054f165 Use error($pred, "...") in more spots in the standard library.
Also, throw software_error/1 exceptions rather than directly throwing strings
in a few spots.

Undo special Ralph-style formatting.

library/*.:
    As above.

tests/hard_coded/array2d_from_array.exp:
tests/hard_coded/array2d.exp:
tests/hard_coded/test_injection.exp:
   Update to conform with the above change.
2019-10-15 17:48:36 +11:00
Julien Fischer
d520113cdb Conversion from array/1 to array2d/1.
Add a function that uses an array/1 value to construct an array2d/1 value
without allocating new memory for the element storage or traversing the
elements.

library/array2d.m:
    Add a function that creates an array2d/1 from an array/1 value

    Fix minor documentation issues:
    - re-order the declarations so that of from_lists/1 is directly below
      that of array2d/1.

    - s/a/an/ in a few spots.

    - add missing apostrophes.

NEWS:
    Announce the new function.

tests/hard_coded/Mmakefile:
tests/hard_coded/array2d_from_array.{m,exp}:
    Add a test case.
2018-11-30 04:57:29 +00:00