Hey all,

Just started here at Puppet Labs a few weeks ago -- great place!

Full disclosure: I did *not* get Andy's quiz right ...

Kylo


On Tue, Jul 23, 2013 at 7:28 PM, Andy Parker <[email protected]> wrote:

> Going through the compiler today I came across something that I already
> knew, but one of the new developers here (Kylo Ginsberg, have you met him
> yet?) didn't. So here is a little brainteaser. Without running this in
> puppet, what order are the notices printed?
>
> define foo() {
>   notice("1 evaluating foo")
>   baz { "testing": }
>   notice("2 after declaring baz")
> }
>
> define baz() {
>   notice("3 evaluating baz")
> }
>
> class quux() {
>   notice("4 evaluating quux")
> }
>
> class bar() {
>   notice("5 evaluating bar")
>   foo { "testing": }
>   notice("6 after declaring bar")
>   class {"quux": }
>   notice("7 after declaring quux")
> }
>
> class { "bar": }
>
> --
> Andrew Parker
> [email protected]
> Freenode: zaphod42
> Twitter: @aparker42
> Software Developer
>
> *Join us at PuppetConf 2013, August 22-23 in San Francisco - *
> http://bit.ly/pupconf13*
> **Register now and take advantage of the Final Countdown discount - save
> 15%!*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-dev.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to