By the way, you could implement c->f as follows: USE: inverse : c->f ( c -- f ) [ f->c ] undo ;
I know it's trivial, but it's fun. Dan On Thu, Dec 4, 2008 at 8:53 PM, Eduardo Cavazos <[EMAIL PROTECTED]> wrote: > Hello, > > Anybody who's looked into constraint based programming has run into the > classic Fahrenheit to Celsius example. > > Here it is in Factor: > > http://paste.factorcode.org/paste?id=237 > > That's not a vocabulary. You can just paste that into a listener. (You'll need > the latest version from git as it uses the 'sto' vocabulary.) A window with > the demo will appear. > > It demonstrates a few Factor techniques: > > * Programming with models > * Gadgets which act as controls and views over models (the VC in MVC) > * Mutually dependent models > > Ed > > ------------------------------------------------------------------------- > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
