Is this a bug?

28 views
Skip to first unread message

Anastasios Tampakis

unread,
Feb 17, 2021, 4:55:52 AM2/17/21
to Pencil Code
Try this code please

x = 1
while x > 0
  await read '?', defer x

When the condition is used with > the above code does nothing. When used like while x =   or while x != it works as it should.

This looks like is a bug in the while mechanism when await is used. It doesn't matter even if I use readnum in the await command.
Reply all
Reply to author
Forward
0 new messages