forthy42 / gforth

Gforth mirror on GitHub (original is on Savannah)
GNU General Public License v3.0
151 stars 28 forks source link

random.fs not compiling as expected. #39

Open jemo07 opened 1 year ago

jemo07 commented 1 year ago
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.

farvardin commented 1 year ago

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