Changeset 5456 for src/Pugs/Monads.hs

Show
Ignore:
Timestamp:
07/12/05 01:41:41 (3 years ago)
Author:
nothingmuch
svk:copy_cache_prev:
7349
Message:

Fix geoffb++'s next in while bug... next is now implemented with
continuations. redo is still needed, as are tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Monads.hs

    r5170 r5456  
    119119           -> Eval Val 
    120120enterWhile action = genSymCC "&last" $ \symLast -> do 
    121     genSymPrim "&next" (const action) $ \symNext -> do 
     121    -- genSymPrim "&next" (const action) $ \symNext -> do 
     122    callCC $ \esc -> genSymPrim "&next" (const $ action >>= esc) $ \symNext -> do 
    122123        enterLex [symLast, symNext] action 
    123124