[Uim-bugs] [Bug 3689] #f check is not done by nth
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jul 5 15:14:49 EEST 2005
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=3689
------- Additional Comments From yamaken at bp.iij4u.or.jp 2005-07-05 05:14 -------
I decline the change since your code of r922 has a design error. See following
example.
(define-record 'foo
'((initialized? #f)))
(define rec (foo-new))
(foo-initialized? rec) ==> #f
(foo-initialized? #f) ==> #f
The two results can't be distinguished by its caller. Although latter form
outputs error message for human, the caller code can't detect it.
To avoid this ambiguity, explicit #f check preceding foo-initialized? is
required as follows.
(if rec
(foo-initialized? rec)
(error-handlings))
I decline the design error and you should repair your own code as above. I'll
debug my codes when you found something wrong other than yours.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the uim-bugs
mailing list