2 parents 2f267d9 + ad3b89b commit db97053Copy full SHA for db97053
1 file changed
src/macros.jl
@@ -273,7 +273,9 @@ struct Wrapper
273
x
274
end
275
276
-@forward Wrapper.x Base.sqrt # now sqrt(Wrapper(4.0)) == 2.0
+@forward Wrapper.x Base.sqrt # now sqrt(Wrapper(4.0)) == 2.0
277
+@forward Wrapper.x Base.length, Base.getindex, Base.iterate # several forwarded functions are put in a tuple
278
+@forward Wrapper.x (Base.length, Base.getindex, Base.iterate) # equivalent to above
279
```
280
"""
281
macro forward(ex, fs)
0 commit comments