> an opcode call, IT IS A KOPCODE BY DEFAULT (emphases mine).
Might the default rate be better selected by using the rate of the LHS of the
expression? At least a situation like mine would be covered. Is there some
reasoning behind this default?
Might there be a need for a "time-cast" operation? This might be done as
follows:
---
ivar size;
s = (irate) ftlen(r);
---
This would have limited use, mostly in conjunction with the polymorphic table
operators.
Another use of the "time-cast" would be to elimintate the need for the
following code:
---
ksig mysig, kinit;
if (!kinit) {
kinit = 1;
mysig = 4; // set the starting value for 'mysig', execute first time
only
}
---
Using the "time-cast" would allow for the following rewrite:
---
ksig mysig;
(irate) mysig = 4;
---
This would also allow a compiler/interpreter to write more efficient code
because the code no longer has to keep checking the value of 'kinit' on each
k-cycle.
Thanks, John.
Mike
This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 12:11:07 EST