Dynamic Dispatch of Continuations; Return of #183 #236
shayanhabibi
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Aah, the infamous #183
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
This isn't really an issue or an idea since I have monkay brain.
Since I'll be using a lot of dynamic dispatch with my project, I was playing around with the continuations to try achieve a flexible way of achieving this in a way that still keeps the logic of the code reasonable.
This was the best I could come up with:
https://github.com/shayanhabibi/cpslearning/blob/main/dynamicdispatch2/main.nim
Is there some way that the method bridge inbetween and the cpsmagic be handled behind the scenes with a pragma or something?
Is this retarded? Is there actually a way easier way of doing this that my small monkay brain doesn't see? Can cps just have compiler support already?
Am I doomed to be a monkey forever?
@alaviss
Beta Was this translation helpful? Give feedback.
All reactions