click bug?

Jose Vasconcellos jvasco at verizon.net
Wed Jan 15 23:22:29 EST 2003


I've ran into the following problem:
Globally declared elements are not visible inside element classes or
compound blocks. In the example below, click reports the following errors:

undeclared element `ToOS' (first use in this block)
`ToOS' input 0 unused

Here's the script:

elementclass ToDeviceDriver { $file |
  input -> ToDump($file);
}

ToOS :: ToDeviceDriver("sink");

ext_if :: FromDump("source");

tun_if :: {
  input[0] -> IPEncap(4, tunnel) -> ToOS; // ToOS is not visible!
};

ext_if -> tun_if;

Is this the correct behavior?

Jose Vasconcellos




More information about the click mailing list