#include "str.h"
#include "var.h"
-/* Notes:
-
- If the weighting variable is deleted somehow (for instance by
- end-of-scope of TEMPORARY), weighting must be canceled.
-
- Scratch vars may not be used for weighting. */
-
/* WEIGHT transformation. */
struct weight_trns
{
msg (SE, _("The weighting variable must be numeric."));
return CMD_FAILURE;
}
- if (v->name[0] == '#')
+ if (dict_class_from_id (v->name) == DC_SCRATCH)
{
msg (SE, _("The weighting variable may not be scratch."));
return CMD_FAILURE;