Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!kubix!kub.nl!pberck From: pberck@kub.nl (Peter Berck) Newsgroups: comp.lang.lisp Subject: structures Keywords: structures Message-ID: <1991Apr09.091234.18122@kub.nl> Date: 9 Apr 91 09:12:34 GMT Reply-To: pberck@kub.nl Organization: KUB, The Netherlands Lines: 18 How can I 'choose slots' in a structure I have defined? Say I have the structure (user) with the slots (name) and (adres), and I want a function which accesses one of the two, supplied as an argument to the function. (I hope I am making myself clear.) For example: (defun prt (someone slot) (print (user-slot someone))) I would like to supply 'name' or 'adres' as argument (slot) to the function. How do I do this? I could probably set things up differently, but I would like to do it this way :) thanks, -peter -------------------------------------- pberck@kub.nl - kubvx1::berckp