Mercurial > repo
view src/ploki/examples/ref.pk @ 5983:e9e46956a506
<oerjan> mk wisdom/welcome.sv//Hej och v\xc3\xa4lkommen till den internationella knutpunkten f\xc3\xb6r esoterisk programmeringsspr\xc3\xa5ksdesign och -drifts\xc3\xa4ttning! F\xc3\xb6r mer information, se v\xc3\xa5r wiki: <http://esolangs.org/>. (F\xc3\xb6r den andra sortens esoterism, pr\xc3\xb6va #esoteric p\xc3\xa5 EFnet eller DALnet.)
author | HackBot |
---|---|
date | Mon, 14 Sep 2015 17:49:06 +0000 |
parents | ac0403686959 |
children |
line wrap: on
line source
GOTO 496 FOR *&ref-assign*& LET $(\@ . 0) \@ . 1 KTHX \@ . 1 FOR *&ref-call&* LEET id \@ . 0 LEET arg \@ . 1 IF \L arg : "set" LEET ref $$ref$$(id) KTHX @OMFG @*&ref-assign*& #<ref \@#> FI KTHX $($$ref$$(id)) FOR ref LEET val \@ LET $$ref$cnt$$ += 1 LEET ref @OMFG @*&ref-call&* #<$$ref$cnt$$ \@#> LET $$ref$$($$ref$cnt$$) ref LET $(ref) \@ KTHX ref 496 #!