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

[OSL] Return a parent function from a child function #207

Open
Mistium opened this issue Dec 17, 2024 · 2 comments
Open

[OSL] Return a parent function from a child function #207

Mistium opened this issue Dec 17, 2024 · 2 comments

Comments

@Mistium
Copy link
Owner

Mistium commented Dec 17, 2024

function doBad(parentReturn) {
  parentReturn 45;
}
function isGood(bad) {
  if (bad) doBad(return);
  return 10;
}
isGood(true); // returns 45

this is js but an equivalent in osl would be very cool

@yuri-kiss
Copy link
Contributor

its a would be js equivalent if js had it*

@ThePandaDever
Copy link
Contributor

yyeeeeeeeesssssssssssssssssssssssssssssss

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

3 participants