|
From: Tim R. <ti...@su...> - 2004-04-08 16:48:57
|
In message <083a01c41d51$64cbf0a0$b2d0fea9@R22>
"Andreas Raab" <and...@gm...> wrote:
> > I'd suggest that the VM changes are pretty small but ought to include
> > the ability to pass back an error value (fortunately I have ancient
> > code to do that sitting somewhere) so the image knows what the problem
> > was and does the smart thing.
>
> Yes, that is a "must do" in my understanding. Thanks for reminding. I think
> we might just extend #primitiveFail to include an "error reason", so you
> would use it via:
>
> interpreterProxy->primitiveFail(ERROR_BAD_ARGUMENT);
>
> or somesuch.
Well, I guess I'll dig out the old code then. Needs a trivial change to
the compiler when handling prims IIRC.
tim
--
Tim Rowledge, ti...@su..., http://sumeru.stanford.edu/tim
Strange OpCodes: PO: Punch Operator
|