Hi Sascha, This looks like a compiler bug. I should have a fix soon.
Slava On Wed, Jun 9, 2010 at 1:24 PM, Sascha Matzke <[email protected]> wrote: > Hi, > today I came across some weird behavior of Factor... I can't explain it, so > here are the steps to reproduce it (you don't need to have MongoDB installed > - it's all 100% Factor). > USING: mongodb.driver mongodb.tuple mongodb.tuple.persistent fry literals ; > MDBTUPLE: person name age ; > person "persons" { } { $[ "ageIdx" [ "age" asc ] key-spec <tuple-index> ] } > define-persistent > person new "Alfred" >>name > dup tuple>selector > The expected would be a hashtable containing the following > H{ { "name" "Alfred" } } > but instead it returns > H{ { "_mfd" f } { "name" "Alfred" } { "age" f } { "_id" f } } > Now find the word write-field? in the Factor browser and set a breakpoint. > Run the whole thing again and simply step through until the end. > Voilà > H{ { "name" "Alfred" } } > The same effect happens if you change something in the > mongodb.tuple.persistent vocab and reload it. > Something seems to be wrong here or it's simply to hot outside for me to > think clearly (or I had too many beers already). > Sascha > PS: The functionality to filter out "f" fields is in the word write-field?. > -- > Through the darkness of future past > the magician longs to see > One chants out between two worlds > Fire walk with me. > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
