In article ,   
   Gerry Jackson wrote:   
   >On 23/09/2024 18:02, Anton Ertl wrote:   
   >> mhx@iae.nl (mhx) writes:   
   >>> On Mon, 23 Sep 2024 8:36:10 +0000,albert@spenarnc.xs4all.nl wrote:   
   >>>   
   >>>> In article,   
   >>>> Ruvim wrote:   
   >>> [..]   
   >>>>> 1 constant a   
   >>>>> 1 constant b   
   >>>>> ' a ' b = .   
   >> ...   
   >>> Why? 'a' and 'b' are user defined words, '=' is a standard word,   
   >>> and 'true' is the expected outcome.   
   >> Are you sure?   
   >>   
   >> [~:152648] iforth   
   >> FORTH> 1 constant a ok   
   >> FORTH> 1 constant b ok   
   >> FORTH> ' a ' b = . 0 ok   
   >>   
   >> I actually know of no system that outputs -1.   
   >>   
   >> - anton   
   >   
   >I know it's different but:   
   >   
   >1 constant a   
   >synonym b a   
   >' a ' b = . \ displayed -1 in 5 out of 6 Forths I just tried, including   
   >GForth.   
   >   
   >Comparing xt's is unsafe   
      
   Look at this. An alias in ciforth is a word that has a different   
   name and behaves exactly the same.   
      
   1 CONSTANT B   
    OK   
    'B ALIAS A   
    OK   
    'B 'A = .   
    0 OK   
    'B >DFA 'A >DFA = \ Where the constants are stored.   
    OK   
    .   
    0 OK \ False   
    B A = .   
    -1 \ True   
    VARIABLE B   
    OK   
    'B ALIAS A   
    OK   
    12 B !   
    OK   
    A ?   
    12 OK \ !!!!!   
      
   P.S. 'B is the nt (a prefer dea) of B.   
   A is the same variable than B, only with a different name.   
      
   >   
   >--   
   >Gerry   
   >   
   --   
   Temu exploits Christians: (Disclaimer, only 10 apostles)   
   Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style Wall   
   Art For Home, Office And Garden Decor - Perfect For Windows, Bars,   
   And Gifts For Friends Family And Colleagues.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|