Silly bug in max and min

John Cowan — 2001-07-08 07:01:58

A misplaced brace in the implementation of max and min caused them not
to do anything unless at least one argument was a float. You can
fix interp.c by moving one of the braces from line 654 to line 645,
or download the revised tarball from the usual place:
http://www.ccil.org/~cowan/joy.tar.gz .

Thanks to Manfred for pointing out this bug.

--
John Cowan cowan@...
One art/there is/no less/no more/All things/to do/with sparks/galore
--Douglas Hofstadter

Manfred von Thun — 2001-07-10 09:52:33

I have made some changes to the Joy page, in style and in content:

C sources updated,
with the "quick fix" for true and false
needed by one test file below
bug for max and min
fixed as per John's instructions (thanks John)

Several new Joy libraries which replace the old usrlib and stdlib
usrlib - (new) now has unix/vms specific stuff to customise
inilib - initial library for Joy system (John: uses "intern")
agglib - aggregates
seqlib - sequences
numlib - numericals
matrlib - matrices (Also, testfile and output for matrlib)
demo output for help command with all libraries loaded

Treat them as initial versions, probably to be revised.
(John: I think they should not be included in the tarball yet.)

I expect to add more soon, mostly from the old typlib
but split into several files. There will be testfiles and output, too.

- Manfred