chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] Re: #500: record types of the same name are treated e


From: Chicken Trac
Subject: [Chicken-janitors] Re: #500: record types of the same name are treated equal
Date: Mon, 14 Feb 2011 01:20:55 -0000

#500: record types of the same name are treated equal
-----------------------------+----------------------------------------------
  Reporter:  syn             |       Owner:        
      Type:  defect          |      Status:  closed
  Priority:  major           |   Milestone:  4.7.0 
 Component:  core libraries  |     Version:  4.6.x 
Resolution:  wontfix         |    Keywords:        
-----------------------------+----------------------------------------------
Changes (by zbigniew):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 Yeah.  Normal fix for this is to make your record names unambiguous or,
 better, use define-record-type and prefix the record name with your module
 name, while using short accessors.  This eliminates most potential
 conflict. E.g. below you have (a:make-foo) but a:foo? only works for
 #<a-foo> not #<b-foo> nor #<kung-foo>.

 {{{
 (module a
  (define-record-type a-foo
    (make-foo x y) foo? (x foo-x) (y foo-y)))
 }}}

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/500#comment:2>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]