[CM] s7: Snd in CM, CM in Snd anyway - getting patterns.scm going

Fernando Lopez-Lezcano nando at ccrma.Stanford.EDU
Thu Jun 11 09:59:51 PDT 2015


On 06/11/2015 06:09 AM, anders.vinjar at bek.no wrote:
> Not disqualifying anything else in cm, but having cm/scm/patterns.scm in
> snd would be a great start.

Indeed, same here...

I have used a modified patterns.scm but I think when I tried to do some 
stuff it was broken - I think embedded patterns did not do the right 
thing (and I did not have time to debug or follow up).

> Running through patterns.scm now, it seems the main thing stopping it is
> a void 'define-record.  Replacing these with calls on define-record-type
> (srfi-17?) from snd/r7rs.scm makes it load and the test-patterns output
> expected results.
>
> Q: would it break things in CM if define-record got replaced with
> define-record-type in pattern.scm?
>
> To use it stand-alone, ie. in a running snd, it needs some things from
> cm/scm/s7.scm + utilities.scm.  I guess for now its ok to just 'inline'
> these dependencies, and aiming at a patterns.scm which to include with
> snd only.

Patterns and loop, I use them both and I'd love to see them supported in 
s7...
-- Fernando



More information about the Cmdist mailing list