Hi Todd,

>
> We have a function we use called includeexec that includes an Embperl
> file and executes it, using the same namespace as the caller.
>..
> We ran into a problem where two different files include menu.html and
> the namespace was being mismatched.  Brian and I traced it to a
> caching issue--once a particular file has been associated with a
> particular namespace, Embperl will always execute that file in that
> namespace, regardless of what you ask for.
>

Yes

> After a couple false starts, we came up with the following.  If the
> requested namespace is different from the "associated" namespace, the
> file is treated as if it has been modified, and is reloaded from disk
> and re-executed.  It's non-optimal, performance-wise, but it appears
> to work.
>

Francis J. Lacoste has send me a patch for the same problem, two weeks ago.
His patch creates an cache for every filename/packagename combination. This
will perform better, but costs more memory. I think I will use this patch.

Anyway, thanks for the patch

Gerald

P.S. This shows how important it is, to send anything thru the list, to
avoid double work. For the Embperl users and for me

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to