[ cl-cookbook-Patches-603047 ] References

[email protected] Sat, 31 Aug 2002 21:48:47 -0700
Newsgroups gmane.lisp.cookbook
Message-ID <[email protected]>
Patches item #603047, was opened at 2002-09-01 00:48
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=447474&aid=603047&group_id=46815

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Danish (emu)
Assigned to: Nobody/Anonymous (nobody)
Summary: References

Initial Comment:
For those that insist on call-by-reference:

(defstruct (reference (:constructor make-reference
(&optional value)))
  (value nil))

;; usage:
;; (make-reference &optional value)
;; Create a reference object
;; (reference-value reference)
;; Dereference reference and obtain contained value
;; (setf (reference-value reference) value)
;; Set value contained by reference


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=447474&aid=603047&group_id=46815


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390