ainslec / adventuron-issue-tracker

Adventuron Issues Tracker
4 stars 0 forks source link

Request: `:local` should support setting local variable values #491

Open joshgoebel opened 2 years ago

joshgoebel commented 2 years ago

This would allow for easy immediate arguments to subroutines, etc...

Before:

      : local "a";
      : local "b" ;
      : set_integer var = "a"  value = "1" ;
      : set_integer var = "b"  value = "5" ;
      : gosub "add";

After proposal:

      : local "a" value="1";
      : local "b" value="5";
      : gosub "add";

It's possible we could also have a new opcode for that such as :set_local.