1 ! Calling the compiler at parse time and having it compile
2 ! generic words defined in the current compilation unit would
3 ! fail. This is a regression from the 'remake-generic'
4 ! optimization, which would batch generic word updates at the
5 ! end of a compilation unit.
7 USING: kernel accessors peg.ebnf ;
10 TUPLE: pipeline-expr background ;
12 GENERIC: blah ( a -- b )
14 M: pipeline-expr blah ;
16 : ast>pipeline-expr ( -- obj )
17 pipeline-expr new blah ;
20 pipeline = "hello" => [[ ast>pipeline-expr ]]
25 [ t ] [ \ expr optimized>> ] unit-test
26 [ t ] [ \ ast>pipeline-expr optimized>> ] unit-test