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

immediate mode not allowing multiline syntax. #3

Closed
Dunbaratu opened this issue Mar 13, 2014 · 1 comment
Closed

immediate mode not allowing multiline syntax. #3

Dunbaratu opened this issue Mar 13, 2014 · 1 comment
Labels
bug Weird outcome is probably not what the mod programmer expected.
Milestone

Comments

@Dunbaratu
Copy link
Member

In previous versions of kOS you could write this in immediate mode at the terminal prompt and it would wait until you entered the final end brace ("}") before executing the "until" command:

set x to 1.
until x > 5 {
  print x.
  set x to x + 1.
}.
1
2
3
4
5

But in this new version it attempts to evaluate the "until" expression immediately as soon as you type the header line and hit 'enter', and thus gives a syntax error.

set x to 1.
until x > 5 {
syntax error at line 1
until x > 5 {
               ^

In the new version you'd have to type it all in in one line to make it work, like so:

until x > 5 {  print x.  set x to x + 1.}.

I noticed this because I was trying to test a few things out and therefore was typing syntax in at the terminal.

@erendrake
Copy link
Member

Lame, we will have to figure out how we want immediate mode to work.

@marianoapp marianoapp self-assigned this Mar 15, 2014
@marianoapp marianoapp added the bug label Mar 15, 2014
@marianoapp marianoapp removed their assignment Mar 15, 2014
@erendrake erendrake added this to the v0.12 Release milestone Apr 13, 2014
erendrake pushed a commit that referenced this issue Jan 9, 2015
stubbed out addon documentation
erendrake pushed a commit that referenced this issue Apr 15, 2015
Pulling changes from the main repo
erendrake pushed a commit that referenced this issue Oct 28, 2015
Use fixed time in Cpu execution
Dunbaratu pushed a commit that referenced this issue Aug 11, 2020
It's been a long time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Weird outcome is probably not what the mod programmer expected.
Projects
None yet
Development

No branches or pull requests

3 participants