data-frame icon indicating copy to clipboard operation
data-frame copied to clipboard

Allegro CL: default-column-formats uses non-class specializer

Open kmcgivney opened this issue 3 years ago • 1 comments

The method default-column-formats specializes on the class simple-array. According to the spec (http://clhs.lisp.se/Body/t_smp_ar.htm), simple-array is a type and not a class. An implementation may define it as a class, so this does work in some implementations, but not all. In particular Allegro CL does not treat this type as a class.

kmcgivney avatar Oct 04 '22 15:10 kmcgivney

Thanks for the report. The last time I tried loading Lisp-Stat into the Allegro CL Express version, it blew up with heap exhaustion, so I haven't been able to test on that implementation.

There's a few things to try:

  • That method conditionalises on Genera; you might try the same trick for Allegro CL.
  • The method is for printing arrays, and there are other ways to do that, including some functions in array-operations. One option is to use #-allegro to eliminate compiling the method on that implementation, and using an alternative array/matrix printing function

I'd like Lisp-Stat to work on Allegro, so would appreciate knowing what you do to get it working so I can document the workaround or fix the issue.

snunez1 avatar Oct 05 '22 00:10 snunez1