Changeset 12176 for src/Pugs/Eval

Show
Ignore:
Timestamp:
08/12/06 19:55:50 (2 years ago)
Author:
audreyt
Message:

* First cut at proper compile-time role mixin support, based on

discussion on #perl6 about the semantics of "does".

class C {};
class D does C {};
D.isa(C); # False
D.does(C); # True

Composition works, and overriding role methods should work as well,
but concrete class/package names is not yet renamed, and role conflicts
is not yet validated. Still, a step toward the right direction.

Files:
1 modified

Legend:

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

    r11862 r12176  
    297297            meta    <- readRef ref 
    298298            fetch   <- doHash meta hash_fetchVal 
    299             fromVal =<< fetch "traits" 
     299            fromVal =<< fetch "is" 
    300300    findWithPkg :: String -> String -> Eval (Either FindSubFailure VCode) 
    301301    findWithPkg pkg name = do