Changeset 36285 in project


Ignore:
Timestamp:
08/16/18 10:53:37 (18 months ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [185.220.102.8]: Documented qualified structure tag issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/porting-c4-to-c5

    r36224 r36285  
    440440</enscript>
    441441
     442==== Manually created record instances
     443
     444In CHICKEN 5 structure tags created by records (as defined with {{define-record}}, etc.
     445are by default qualified with the module name. Sometimes code creates these record instances
     446manually (i.e. by using {{##sys#make-structure}}, which must take this qualification into
     447account, e.g.:
     448
     449<enscript highlight="scheme">
     450(module foo (bar)
     451  (import scheme (chicken base))
     452  (define-record baz)
     453  (print (eq? (make-baz) (##sys#make-structure 'baz))))   ; ==> prints "#f"
     454</enscript>
     455
    442456=== Re-packaging eggs
    443457
Note: See TracChangeset for help on using the changeset viewer.