On Mon, Oct 13, 2008 at 11:52 PM, Alex Chapman <[EMAIL PROTECTED]> wrote: > Hi All, > > I've pushed a new vocabulary to my repository > (git://factorcode.org/git/wrunt.git) called 'hats'. Hats is a protocol for > getting and setting. We have protocols for assocs, sequences, etc., but not > one like this (as far as I know). I've pasted the code and the unit tests > below.
Hi Alex, First of all, sorry for the late reply. I like your hats idea. They are a generalization of the 'refs' vocabulary. Right now, refs only refer to keys or values in assocs, but they can be generalized using your ideas to work on sequences and tuples. They already work on sequences and tuples indirectly, by virtue of the enum and mirror assoc types being defined, but direct implementations of refs on these types would be good too. Slava ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk