Bugfix: It is very confusing when evaluation results in THE_SLOT_VARIABLE.
commit5c46ae25cb97acbf7964bc585738fe21154e3a60
authorHenrik Tidefelt <tidefelt@isy.liu.se>
Sun, 5 Jul 2009 02:52:32 +0000 (5 04:52 +0200)
committerHenrik Tidefelt <tidefelt@isy.liu.se>
Tue, 18 Aug 2009 20:26:22 +0000 (18 22:26 +0200)
treebb58c4e01a645726498b4028f5ddc8706bf75c38
parente03492329887b6dbab531f02b49b82fe5a56bc06
Bugfix: It is very confusing when evaluation results in THE_SLOT_VARIABLE.

Evaluations should result in THE_VOID_VARIABLE instead.  Otherwise, passing the computed value as an argument to a function will make the function believe that there was nothing passed at all, and the resulting error message would be somewhat misleading.

A check was inserted to throw an InternalError if THE_SLOT_VARIABLE was detected.
source/astfun.cc
source/astvalues.cc
source/astvar.cc
source/continuations.cc
source/coremisc.cc
source/hottypes.cc
source/multipage.cc
source/shapesexceptions.cc
source/shapesexceptions.h