Re: [svn:PHP-Sandwich] rev 1328 - PHP-Sandwich/trunk/t
[email protected] (George Schlossnagle) Tue, 28 Jun 2005 22:30:03 -0400
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-16--28917115
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
On Jun 28, 2005, at 9:57 PM, David Wheeler wrote:
> On Jun 28, 2005, at 18:43 , George Schlossnagle wrote:
>
>
>> No, it has something to do with a subroutine defined in XS
>> croaking when called via AUTOLOAD. I think it's repeatable
>> outside the sandwich as well. I've been struggling back and forth
>> with it for a week. If you replace the call to the non-existent
>> function with call('strln', $args), it works correctly (i.e. it
>> croaks).
>>
>
> Ah, gotcha. Well, maybe discourage that for now? Or just really
> document it? Does AUTOLOAD call call('strln', $args)?
It uses a goto so that the callstack is correclty maintained, but
yes. It makes it hard to write code the way you want to, because
then your method calls look nasty. It should be tackleable.
Sterling said he'd give it a fresh set of eyes tomorrow. If I can't
get it knocked by the end of the week, I'll defer it till later.
>
> Best,
>
> David
>
George Schlossnagle
-- Vice President of Engineering
-- OmniTI Computer Consulting
-- http://www.omniti.com
--Apple-Mail-16--28917115--