Support for 'deferred_none' on polymorphic and overloaded procedures #5338
ryantrawick
started this conversation in
Ideas/Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I've lately needed to use
@(deferred_in = proc_name)
on polymorphic and overloaded procedures. It currently gives this error for polymorphic procedures:Error: 'deferred_in' cannot be used with a polymorphic procedure
I understand why
deferred_in
anddeferred_out
aren't really possible, or would be annoying to support, but it seems likedeferred_none
should be reasonably straightforward if I understand how they work?This would be the ideal if the in/out versions could work:
Or just this, assuming the overload would still call the deferred procedure:
Basically I want to be able to "finalize" something only when used, without having to remember to write
defer pkg.finalize(foo)
every time, similar to the IMGUI example that the deferred examples use. I don't know if this is something that many people would want or use though.Beta Was this translation helpful? Give feedback.
All reactions