User-defined invokable type? #4004
-
Can we make any type that has an invokable member Alternatively, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Do you have any particular use cases in mind? For some inspiration take a look at scala's I think it reasonably likely that there'll be some work in the future to extend the set of things that are delegate like, so that lambdas can be converted to structs, and closures to ref structs - see #2482 for the motivation. If that ever does happen then it's likely that this might fall out of that work. |
Beta Was this translation helpful? Give feedback.
-
This is a duplicate of #95. |
Beta Was this translation helpful? Give feedback.
This is a duplicate of #95.