You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a filter's forward method claims to require inoutbytes, but we always only copy the data. This makes it impossible to forward const data, e.g.,
modulefoo;constC=b"";typeF=unit{
%filter;
: bytes &eod &convert=$$.split(b" "){for(xin $$){self.forward(x);# FAIL: `x` is `const`.self.forward(C);# FAIL: `C` is an actual `const`.}}};publictypeX=unit{on %init{self.connect_filter(newF);}};
Currently a filter's
forward
method claims to requireinout
bytes
, but we always only copy the data. This makes it impossible to forwardconst
data, e.g.,We should drop the
inout
requirement fromforward
.As a workaround one currently could create a new
local
variable, e.g.,The text was updated successfully, but these errors were encountered: