Branch: Tag:

2014-12-09

2014-12-09 16:26:04 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Master: Complain about inherited joinnodes and dirnodes.

A common cause for this is an attempt to inherit a module that is a dirnode.

Complaining at creation time makes it easier to find the mistake.

1967:       protected void create()    { +  if (!dirname) { +  error("Attempt to create a dirnode without a directory.\n" +  "Have you inherited a dirnode?\n"); +  } +     resolv_debug ("dirnode(%O,%O) created with name %O\n", dirname,    compilation_handler, name);    fc[dirname]=this;
2323:    fallback_module = ([]);    }    +  if (!joined_modules) { +  error("Attempt to create a joinnode without joined modules.\n" +  "Have you inherited a joinnode?\n"); +  } +     if (!name)    {    mapping(string:int(1..1)) names = ([]);