MOO-cows Mailing List Archive
Re: call_function() and $bf_FOO()
On Sat, 27 Apr 1996, Don Schwarz wrote:
> On Sat, 27 Apr 1996 firstname.lastname@example.org wrote:
> > >I had thought of that, but I assumed this would be taken care of with
> > >DEFAULT_MAX_STACK_DEPTH the same way regular verb calls are.
> > but then the function doesn't get called at all. Say I had a #0:"bf_fileread
> > bf_fileextract bf_filegrep [...]" and had this:
> > [...]
> > return call_function(verb[4..$],@args);
> > endif
> > Yeah, I know this doesn't do permissions checks, but you get the idea,
> > anyway the builtin will never get called since it'll keep calling itself
> > over and over again.
> So? If this happens, it obviously means something was programmed
> incorrectly and should raise an E_MAXREC. What else could it do?
I'm sorry, but you lost me a long time ago. Builtins that are called
from #0 don't get passed through the wrappers, and that includes
call_function(). Is there something I missed?
Subject Index |