perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angus Lees <>
Subject Re: Embperl::Object doesn't cache app object correctly?
Date Tue, 09 Aug 2005 23:13:29 GMT
At Tue, 9 Aug 2005 14:16:25 +0200, Gerald Richter wrote:
> > *file:/home/gus/public_html/gus/*epparse:Text; 
> > expires_in=0 expires_func=no expires_filename= cache=no
> This is the interesing line, which shows that the syntax of the application
> object was switched to Text. This will cause a recompile and for this reason
> a new package name (because, of course, running with syntax Perl and syntax
> Text gives different results and needs to be cached separately).
> Embperl::Object call your application object always with syntax => Perl. The
> only way this could change is, when you have overloaded the get_recipe
> method in your application object. So the first time it works, because
> get_recipe in not in place, on the second call get_recipe is in place,
> changes the syntax to Text when the application object is to be executed,
> for this reason it could not be found in the cache and will get recompiled
> in a new package.
> Does this make sense?

Yes, thats exactly what was happening.

The idea that the application object would be called on itself never
crossed my mind and get_recipe had an "else ..->syntax('Text')" clause

Thanks, Gerald.

 - Gus

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message