[chuck-users] Chuck Concurrency Best Practices
mike clemow
gelfmuse at gmail.com
Tue Sep 2 11:03:48 EDT 2008
Well, yes, exactly. That's what this forum topic I mentioned is all about:
http://electro-music.com/forum/viewtopic.php?highlight=functor&t=23546
Functors, I think they're called. Essentially, the idea of wrapping
the concept of a "runnable process"--or in this case a sporkable
one--into a class of some sort with a .run() method that is always
overridden is in order to provide a way to pass any process to another
class that can run (or spork) them as children. You can get a lot of
functional mileage out of that, but it's confusing and awkward as I'm
finding out.
-Mike
On Tue, Sep 2, 2008 at 10:55 AM, Stephen Sinclair <radarsat1 at gmail.com> wrote:
> On Mon, Sep 1, 2008 at 2:06 PM, mike clemow <gelfmuse at gmail.com> wrote:
>>
>> What I really want is functions to be objects so that I can pass them
>> as arguments and return them from other functions. This would make me
>> very happy.
>
> Closures would be cool, but would it be possible to do something
> similar by using objects that have member functions, and passing
> those?
>
> Steve
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
--
http://semiotech.org
http://semiotech.org/michael
More information about the chuck-users
mailing list