Changeset 32621 in project


Ignore:
Timestamp:
07/28/15 18:45:33 (5 years ago)
Author:
juergen
Message:

typed-lists 2.2 with cell-error fixed and patches removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/typed-lists

    r31731 r32621  
    6060instantiation of the two functors. They are untyped because the item
    6161predicate is simply (lambda (x) #t), i.e. everything passes this test.
     62
    6263But note, that for compiling these modules we needed to supply two
    6364patches, since the functor implementation is still buggy: In the Chicken
    6465generated import modules the abstract module parameters must be replaced
    6566by the concrete module arguments.
     67Fortunately, this bug is fixed as of chicken-4.10.
    6668
    6769=== list-functor
     
    529531(define nls (ilist-cons 1 nil))
    530532(ilist? nls) ; -> #t
    531 (define nlst (ilist 0 1 (cell 2) 3 4))
     533(define cl (cell 2))
     534(define nlst (ilist 0 1 cl 3 4))
    532535(ilist? nlst) ; -> #t
    533536(list? nlst) ; -> #f
     
    559562(ilist? (ilist-reverse nlst)) ; -> #t
    560563(ilist-reverse nlst)
    561 (ilist->list nlst) ; -> (list 0 1 (cell 2) 3 4)
     564(ilist->list nlst) ; -> (list 0 1 cl 3 4)
    562565(ilist-item 2 nlst) ; -> !2!
    563566(cell-set! (ilist-item 2 nlst) 20)
     
    656659== Last update
    657660
    658 Oct 28, 2014
     661Jul 28, 2015
    659662
    660663== Author
     
    664667== License
    665668
    666  Copyright (c) 2014, Juergen Lorenz
     669 Copyright (c) 2014-2015, Juergen Lorenz
    667670 All rights reserved.
    668671
Note: See TracChangeset for help on using the changeset viewer.