gforth icon indicating copy to clipboard operation
gforth copied to clipboard

random.fs not compiling as expected.

Open jemo07 opened this issue 2 years ago • 1 comments

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 avatar Oct 30 '22 10:10 jemo07

@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"

farvardin avatar Oct 04 '23 12:10 farvardin