User talk:WhoeverKnew123
Jump to navigation
Jump to search
2dFish Questions
- Does the first character need to be a direction command, or is there a default direction? The direction command is necessary
- What happens when the pointer goes out of bounds? If it was implemented, it would have an error
- Does the command
%
input an integer into the accumulator or string variable? It's for the accumulator - What happens when the string variable is output when it's empty? Does it just output the empty string? Yup
- Does every program need a termination command, or is it fine for a program to run indefinitely? Its fine
- How does the Hello, world! example work? I was under the impression that the correct version would be as follows:
/(Hello World!)*@
They are both correct, before I added the output command; I made the hello world program like that, also,a
command changes to string mode when(
executes, so then whena
gets executed; it removes the last character from string variable and prints it out. - Couldn't an infinite cat program be written as follows:
/$*v ^ \
Yeah it can
- Bangyen (talk) 14:01, 9 May 2022 (UTC)
If (
changes a
to string mode, how is it changed back to accumulator mode? When the accumulator changes? Yes, when the accumulator changes