So I got a wild idea to try and do some of Structure and Interpretation of Computer Programs, but in PD rather than scheme. At "1.3.1 - Procedures as Arguments", there's a bit of code that goes
(define (sum-integers a b)
(if (> a b)
0
(+ a (sum-integers (+ a 1) b))))
that sums integers a thru b. I tried to make a patch that does this, it is attached. I was super stoked, and think it is correct, but PD won't run it, says "can't load abstraction within itself".
That's sad to me. I'm reading some stuff about distributed and parallel algorithms, and could really see myself reading a lot about that stuff and really getting into it. I'd really like to see it allow subpatches and custom objects to contain instances of themselves.
I just saw this patch 50.somethingsomething.pd in the extended release that creates a clone of itself! wicked.
now that I'm looking at that sumints patch more I think its kinda wrong... oh well. more staring and thinking.
Any thoughts on these issues would be much appreciated. Haven't posted in a while, good to look around once more! -walt