cvs commit: hugs98/src input.c script.c
Sigbjorn Finne
sof@galois.com
Thu, 13 Mar 2003 09:59:31 -0800
"Ross Paterson" <ross@soi.city.ac.uk> writes:
> On Thu, Mar 13, 2003 at 07:38:28AM -0800, Sigbjorn Finne wrote:
> > sof 2003/03/13 07:38:28 PST
> >
> > Modified files:
> > src input.c script.c
> > Log:
> > script.c:addScript() + input.c:parseScript():
> > Delay assignment of 'scriptFile' until new file/module has been
> > located. This is so that if it cannot be found, we want the error
> > message to refer to file/module that imported it.
>
> Doesn't this work only if the first import in a module fails?
> If the second import fails, the parent module name is gone.
>
That's true, there's potential for the user to be confused by
this. I've added a 'parent' field to script stack entries (nice
consolidation you did to the representation, btw), which
is then made use of.
--sigbjorn