On 3 Mar 2009, at 10:22, Dermot wrote:
Loading a leaf node in your object graph does not imply loading all of its
parent nodes.

Is this because of use base? I was under the impression that the
inheritance search would go up to the parent.

Correct, but MyApp::Model::Foo ISA Catalyst::Model::Foo, which ISA Catalyst::Model, which ISA Catalyst::Component

No MyApp or Catalyst involved, ergo they're not loaded.

I guess -c doesn't checks for methods actually exist.

No, I'm just being dumb - all the code calling MyApp is runtime code, and -c only parses the file and runs compile time code (i..e code inside BEGIN blocks).

So please excuse me for talking (partially) rubbish when I was pre- coffee this morning ;)

Cheers
t0m


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to