gforth
gforth copied to clipboard
random.fs not compiling as expected.
Gforth 0.7.3, Copyright (C) 1995-2008 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `bye' to exit
ok
ok
ok
Variable seed ok
ok
$10450405 Constant generator ok
ok
: rnd ( -- x ) seed @ generator um* drop 1+ dup seed ! ; ok
: seed-init ( -- ) ntime drop seed +! rnd drop ;
:9: Undefined word
: seed-init ( -- ) >>>ntime<<< drop seed +! rnd drop ;
Backtrace:
Looks like there is a dependency to ntime word.
@jemo07 probably it was fixed into current development version, you should try the latest snapshot. Gforth 0.7.3 is from 2014! It's a pity it's still the version labelled as "latest release"