Is this a bug?

Skip to first unread message

Anastasios Tampakis

Feb 17, 2021, 4:55:52 AMFeb 17
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
0 new messages