Re: [CM] s7: How does the function 'copy' work?

2017-01-18 Thread bil

I have added some verbiage to s7.html about copy
(and reverse! since it was right there), and merged
in a bugfix from Tito Latini for snd-mix.c (mixing
multi-channel files).

___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] s7: How does the function 'copy' work?

2017-01-18 Thread Kjetil Matheussen
Perfect.
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] s7: How does the function 'copy' work?

2017-01-18 Thread bil

It's a shallow copy.

___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] s7: How does the function 'copy' work?

2017-01-18 Thread Kjetil Matheussen
Thank you. Another question, does 'copy' do a deep copy or a shallow copy?


On Wed, Jan 18, 2017 at 1:09 PM,  wrote:

> yes, that should work.
>
>
>
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] s7: How does the function 'copy' work?

2017-01-18 Thread bil

yes, that should work.

___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



[CM] s7: How does the function 'copy' work?

2017-01-18 Thread Kjetil Matheussen
Hi,

I need a 'sort' function, and wonder if I can implement it like this?

(define (sort sequence less?)
  (sort! (copy sequence) less?))

I couldn't find documentation about the 'copy' function in the manual,
but maybe it can be used as a copy-list function?
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist