theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

FIX: #420 onEvent keyword does not execute all lines of code - [merged] #696

Closed benloh closed 1 year ago

benloh commented 2 years ago

In GitLab by @daveseah on Jul 18, 2022, 10:00

Merges dev-sri/420-onevent-interim-fix -> dev-next-gui

Keyword onEvent Bug

There was a reported issue in #420 that code like this failed to function as expected:

onEvent Tick [[
  dbgOut "hello"
  dbgOut "is it me you're looking for"
]]

In the above, only "hello" would be output to the console, leaving the programmer to hum the second line and feel unfulfilled.

This is due to a bug in onEvent itself where it was using an old utility called derefFirstArg() which just uses the first element of an array. It has been removed

Simulator Control Cleanup

benloh commented 2 years ago

In GitLab by @daveseah on Jul 18, 2022, 10:01

marked this merge request as ready

benloh commented 2 years ago

@daveseah Actually I've been trying to convert all references to blueprint id or bpid to bpName. But hadn't gotten around to converting all the instances defs. Probably fine for now for consistency-sake.

benloh commented 2 years ago

Confirmed runs. Confirmed all onEvent lines run. OK to merge!

benloh commented 2 years ago

mentioned in commit 07024c28cba360a34a42bd987098dbe76d9ab28d