Changeset 11208 for src/Pugs/Eval

Show
Ignore:
Timestamp:
07/05/06 18:44:43 (2 years ago)
Author:
audreyt
Message:

* szbalint++ requested that we propagate Perl 5 "die" errors into

Perl 6 "die" errors so that it can be caught and handled at "try" site.
We implement it with prepending $@ to each return list.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval/Var.hs

    r10761 r11208  
    211211                if not found' then evalExp (App (Var name) Nothing (map (Val . PerlSV) (sv:svs))) else do 
    212212                env     <- ask 
    213                 rv      <- liftIO $ do 
     213                rv      <- guardIO $ do 
    214214                    envSV   <- mkVal (VControl $ ControlEnv env) 
    215215                    subSV   <- vstrToSV $ tail name