/[guile]/guile/workbook/bugs/optargs-bound-gone
ViewVC logotype

Diff of /guile/workbook/bugs/optargs-bound-gone

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by ttn, Wed May 1 21:25:09 2002 UTC revision 1.6 by rlb, Thu May 16 18:04:59 2002 UTC
# Line 54  mvo sez: Line 54  mvo sez:
54  > that the bug is fixed at this time.  probably we can find a way to provide  > that the bug is fixed at this time.  probably we can find a way to provide
55  > `bound?' and yet not use SCM_UNDEFINED.  that would maintain continuation  > `bound?' and yet not use SCM_UNDEFINED.  that would maintain continuation
56  > and honor the spirit of the change that introduced the bug (encapsulation).  > and honor the spirit of the change that introduced the bug (encapsulation).
57    
58    2002-04-28 mvo sez (explaining how to handle things without bound?):
59    
60    > You can do this easily when defining such a function.  I.e.
61    >
62    >     (define not-provided (cons* 'not-provided))
63    >
64    >     (define* (foo :optional (bar not-provided))
65    >       (if (eq? not-provided bar)
66    >           ...))

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26