aaronjanse / asciidots

Esolang inspired by ASCII art
https://ajanse.me/asciidots
GNU Affero General Public License v3.0
1.11k stars 33 forks source link

Online interpreter improperly handles filters #69

Open alion02 opened 6 years ago

alion02 commented 6 years ago

It seems that in the online interpreter : always filters by value, rather than by ID if the : is preceded by an @ symbol. Minimal program that shows the problem:

.-#1@:$"Whoops"

This should print nothing. On TIO and in the offline interpreter, that's the observed behavior. In the online interpreter "Whoops" is printed.

aaronjanse commented 6 years ago

Proof of concept

Relevant code: https://github.com/aaronduino/asciidots/blob/a63745b578ae0da9128f0d1a6b96e5a8eccfaf29/dots/states.py#L219-L228