zeek/auxil/spicy/doc/programming/examples/_unit-params.spicy
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

11 lines
276 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
type Bar = unit(msg: string, mult: int8) {
x: int8 &convert=($$ * mult);
on %done { print "%s: %d" % (msg, self.x); }
};
public type Foo = unit {
y: Bar("My multiplied integer", 5);
};