Timeline for Default for Code Golf: Input/Output methods
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:03 | history | edited | CommunityBot |
Commonmark migration
|
|
Aug 11, 2016 at 7:39 | comment | added | Katenkyo |
@joey in lua, you can see this value the same way you would do for a library. As this is generally some short piece of code, you could use both local answer = require"codegolf" and local answer = loadstring("program copypasted")()
|
|
Aug 11, 2016 at 7:35 | comment | added | Katenkyo | @MartinEnder I think it is a generalisation of the one you're pointing to. I'm only creating this post as some PPCGer think it doesn't apply to returns, and I'd like to have a clear consensus on the return for programs, instead of one that simply embed it because of its definition. | |
Aug 10, 2016 at 17:57 | comment | added | Joey | Ok, basically you are referring to the fact that you can embed Lua and have the host application handle any return values from the "main" Lua program in a suitable manner. It's just that the default Lua interpreter will effectively do nothing with the stack contents in that case, right? | |
Aug 10, 2016 at 7:00 | comment | added | Joey | @MartinEnder: This refers to codegolf.stackexchange.com/a/88856/15 this answer here and explicitly concerns itself with return values of programs that are not integers. Which, incidentally, doesn't work in any environment I know of. | |
Aug 9, 2016 at 22:30 | comment | added | Martin Ender Mod | Is this different from meta.codegolf.stackexchange.com/a/5330/8478? | |
Aug 9, 2016 at 21:46 | comment | added | Katenkyo | This has my upvote, because it is natural to languages as lua, where we often use this mechanism when creating an object. | |
Aug 9, 2016 at 21:44 | history | answered | Katenkyo | CC BY-SA 3.0 |