Subject: compile Maxima file containing a large list
From: Raymond Toy
Date: Sat, 04 Aug 2012 08:45:33 -0700
On 8/4/12 6:04 AM, Volker van Nek wrote:
> I experienced a problem compiling a Maxima file containing a list of 256
> elements.
>
> I can load the file and do a compile(all). That works. But compile_file
> fails. Error message:
>
> Error in CONDITIONS::CLCS-COMPILE-FILE [or a callee]: Dots appeared
> illegally.
>
> I did a translate_file and looked into the translation. There I found
> (LIST '(MLIST) 99 124 119 123 242 107 111 197 48 1 103 43 254
> 215 171 118 202 130 201 125 250 89 71 240 173 212 162
> 175 156 164 114 192 183 253 147 38 54 63 247 204 52 165
> 229 241 113 216 49 21 4 199 35 195 24 150 5 154 7 18 128
> 226 235 39 178 117 9 131 44 26 27 110 90 160 82 59 214
> 179 41 227 47 132 83 209 0 237 32 252 177 91 106 203 190
> 57 74 76 88 207 208 239 ...))))
>
> So lists with more than 100 entries are abbreviated with '...'.
Three dots and not two?
>
> I used Maxima 5.27 on Linux build with GCL. Can anybody help?
I guess *print-length* is set to 100, so the whole list was not printed.
It might work if you set that to nil before compiling. If that doesn't
work, then it might have to be bound in compile_file somewhere.
Ray