in reply to Re^2: lexicaly scoped export of variables? (macro)
in thread lexicaly scoped export of variables?

"I'd like to know if it's possible to hook into the parser to implement a macro mechanism like this."

You know, I was thinking something similar myself. Personally I'd do it with Parse::Keyword/Keyword::Simple.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
  • Comment on Re^3: lexicaly scoped export of variables? (macro)

Replies are listed 'Best First'.
Re^4: lexicaly scoped export of variables? (macro)
by LanX (Saint) on Apr 01, 2014 at 00:25 UTC
    > Keyword::Simple

    You know, I met Lukas last week... :)

    This looks already pretty close, awesome!

    Pity we didn't have more time to talk.

    Cheers Rolf

    ( addicted to the Perl Programming Language)