Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug.coroutine #963

Closed
SoniEx2 opened this issue Mar 17, 2015 · 11 comments
Closed

debug.coroutine #963

SoniEx2 opened this issue Mar 17, 2015 · 11 comments

Comments

@SoniEx2
Copy link
Contributor

SoniEx2 commented Mar 17, 2015

Would be nice to be able to get access to the internal coroutine stuff. Should be safe?

@natedogith1
Copy link
Contributor

What internal coroutine stuff are you hoping to get access to? (Since it's not defined in the manual, I assume you mean assigning something to debug.coroutine?)

@SoniEx2
Copy link
Contributor Author

SoniEx2 commented Mar 18, 2015

I want access to internal coroutine.yield and coroutine.resume stuff

@MyNameIsKodos
Copy link
Contributor

I may be wrong, but I feel like this may be better suited as a question posted on the forums as opposed to using the Issue Tracker.

@SoniEx2
Copy link
Contributor Author

SoniEx2 commented Mar 18, 2015

it's a suggestion, OC internals yelds "bubble", which's normally invisible to user code, but I want a "debug.coroutine" that gives me access to that

@natedogith1
Copy link
Contributor

If you want you can implement your own bubbling versions of the coroutine functions, however I doubt you'll get access to the internal version since that's used for things java/scala side things. And while some of these things might not be dangerous to provide to the user (how shutdown/reboot and signal pulling work), others would be a very bad idea (how certain function calls are done on the main thread). Oh, and the resume function is part of what prevents code from running too long, so that's the reason revealing that to users is a bad idea.

@fnuecke
Copy link
Member

fnuecke commented Mar 18, 2015

Aside from all the reasons against given above, I'm missing one major thing in this thread: the "why". What do you need this for that's technically impossible and not workaroundable with how it is now?

@SoniEx2
Copy link
Contributor Author

SoniEx2 commented Mar 18, 2015

What would it actually break?

@MyNameIsKodos
Copy link
Contributor

But why would you need it in the first place? Surely you have a usecase for this.

@SoniEx2
Copy link
Contributor Author

SoniEx2 commented Mar 19, 2015

Playing with OC internals? I wanna "get dirty", so to speak

@ds84182
Copy link
Contributor

ds84182 commented Mar 19, 2015

🎤 WHY DON"T YOUUUUUIOOOOOOH just MODIFYIIIIIII bios.luAAAAAAAAAAAAAHHHH? It's possibleeeh, you should triiiiiiiiiiie it sometimesssss.

@fnuecke
Copy link
Member

fnuecke commented Mar 22, 2015

Closing due to lack of convincing arguments.

@fnuecke fnuecke closed this as completed Mar 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants