Changeset 539

Show
Ignore:
Timestamp:
06/21/08 16:32:56 (4 months ago)
Author:
krobillard
Message:

Removed appen.
eq? and same? work on datatype!.

Location:
trunk/thune
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/boot.c

    r533 r539  
    152152  "[0 swap add] proc :to-dec\n" 
    153153  "[rot minimum maximum] proc :limit   ; (n min max -- n)\n" 
    154   "push: :appen\n" 
    155154  "[blk | ctx num word]\n" 
    156155  "[\n" 
  • trunk/thune/doc/UserManual

    r538 r539  
    494494===========  ======================  ================= 
    495495empty?       (ser -- logic)          Same as tail?. 
    496 appen        (ser val -- )           Append and drop. 
    497496map          (ser comb -- )          Transform each element of a series. 
    498497replace.all  (ser old new -- ser)    Find & Replace  
  • trunk/thune/eval.c

    r538 r539  
    557557    switch( ur_type(a) ) 
    558558    { 
     559        case UT_DATATYPE: 
     560            if( ur_is(b, UT_DATATYPE) ) 
     561            { 
     562                if( (a->dt.mask0 == b->dt.mask0) && 
     563                    (a->dt.mask1 == b->dt.mask1) ) 
     564                    return 1; 
     565            } 
     566            break; 
     567 
    559568        case UT_NONE: 
    560569            if( ur_is(b, UT_NONE) ) 
     
    772781    switch( ur_type(a) ) 
    773782    { 
     783        case UT_DATATYPE: 
     784            if( (a->dt.mask0 == b->dt.mask0) && 
     785                (a->dt.mask1 == b->dt.mask1) ) 
     786                return 1; 
     787            break; 
     788 
    774789        case UT_NONE: 
    775790            return 1; 
     
    887902    ur_initType(tos, UT_DATATYPE); 
    888903    ur_datatype(tos) = t; 
     904    ur_setDatatypeMask(tos, t); 
    889905} 
    890906 
  • trunk/thune/mkboot.t

    r534 r539  
    178178[rot minimum maximum] proc :limit   ; (n min max -- n) 
    179179 
    180 push: :appen 
    181  
    182180[blk | ctx num word] 
    183181[