This is a bug but it is also how 13 : works. As a workaround, it needs to defer evaluation to run time by some tricks. eg, 13 : '-:y+0 1 2=(? bind 3)y'
Чт, 03 ноя 2016, jprogramming написал(а): > > The following J-code produces the Sierpinski triangle. > f=. 3 : '-:y+0 1 2=?3' > 'dot'plot+/(3%:_1 0 1)*|:f^:(i.10000)1 1 1%3 > > Note however that the tacit code generator (13 :) evaluates the random number > generator (?) at compile time rather than at run time. > 13 : '-:y+0 1 2=?3' > [: -: 1 0 0 + ] > I think that is a bug. > Thank you. > Bo. > Game of Chaos > > > | > | | > Game of Chaos > Java applet that produces the Sierpinski triangle by shooting dice | | > > | > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
