[CM] list sort in Sal

Heinrich Taube taube at uiuc.edu
Sun Feb 21 07:39:54 PST 2010

infix operators are not functions (the're infix operators). the right  
way to do this would be for me to either add a #'  macro to mark  
things as functions or for me to provide functional names for these in  
scheme). For now the latter is easy enough for you to do ,just put  
something like this in an init file:

(define less? <)
(define greater? >)

then when you start Grace you do


To set an init file use File>Set Init File...

On Feb 20, 2010, at 1:00 PM, Joel Ross wrote:

> Hello,
> I'm trying to sort a list in Sal, and the function fails with the
> error "illegal statement" for:
> sort (x, <)
> while this works in Scheme with:
> (sort  x < )
> Am I using incorrect syntax?
> Thanks,
> Joel
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

More information about the Cmdist mailing list