Skip to main content
10 events
when toggle format what by license comment
May 3, 2021 at 6:43 comment added FZs @VFDan In case of JS, console.log-ing is often regerded as STDOUT. Also, Node.js does have a STDOUT.
Jul 3, 2019 at 20:39 comment added Luvexina @Hosch250 There are languages that don't have STDOUT, like JS
Aug 27, 2017 at 15:51 comment added The Fifth Marshal @MartinEnder Yes, scratch has no return values for it's functions
Apr 4, 2017 at 8:58 comment added Shaun Bebbers @MartinEnder Most (all?) 8-bit BASIC interpreters do not specifically return a value from a sub-routine, whilst many will allow you to define a mathematical function with the DEF keyword, this is quite limited. I also don't recall Amiga BASIC included with WorkBench having return values from sub-routines but it's been many years since I did any Amiga BASIC so don't quote me on that. 6502/10 assembly does not return values from sub-routines either. If you know that you've stored your result in the accumulator, then you simply use that on return from your sub-routine.
Nov 3, 2014 at 0:22 comment added user10766 Oh, sorry. I definitely will vote on this then.
Nov 3, 2014 at 0:21 comment added Martin Ender @hosch250 This particular answer only concerns functions. Whether functions and/or programs are allowed is another question (see the linked meta question, but of course it's ultimately up to the challenge author). But this answers says that if functions are allowed, then they should be allowed to use their return value for the result - as are all other answers here that start with the word Functions.
Nov 3, 2014 at 0:19 comment added user10766 Oh, that is not considered outputting the last I heard - that is returning a value. If the question asks for a function, this is correct. If the question asks for a program, I support outputting to STDOUT or a file.
Nov 3, 2014 at 0:17 comment added Martin Ender @hosch250 Wait, are there languages that have functions without return values? o.O
Nov 3, 2014 at 0:16 comment added user10766 How many languages support this? I support outputting to STDOUT.
Nov 2, 2014 at 23:13 history answered Martin Ender CC BY-SA 3.0