ref: 75de43b44c86aac32e041ee84e1f57218d7cf065
parent: d395999d30f90756a252c7e4c1d5e912eb6114ca
author: Nicola Pisanti <nicola@npisanti.com>
date: Wed Jan 23 20:42:35 EST 2019
changes V to match orca-js behavior try to divide commits
--- a/sim.c
+++ b/sim.c
@@ -1,6 +1,6 @@
+#include "sim.h"
#include "gbuffer.h"
#include "mark.h"
-#include "sim.h"
//////// Utilities
@@ -706,13 +706,15 @@
LOWERCASE_REQUIRES_BANG;
PORT(0, -1, IN | PARAM);
PORT(0, 1, IN | PARAM);
- PORT(1, 0, OUT);
Glyph left = PEEK(0, -1);
Glyph right = PEEK(0, 1);
- if (right == '.')
+ if (right == '.') {
+ PORT(1, 0, OUT);
return;
+ }
if (left == '.') {
// Read
+ PORT(1, 0, OUT);
Usz var_idx = safe_index_of(right);
Glyph result = extra_params->vars_slots[var_idx];
if (result == '.')