Newsgroups: comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!fs7.ece.cmu.edu!hudson.lm.com!godot.cc.duq.edu!news.duke.edu!news.mathworks.com!udel!gatech!howland.reston.ans.net!pipex!uknet!festival!leeds.ac.uk!news
From: rodw@cbl.leeds.ac.uk (R J Williams)
Subject: declaring struct slot setter before defstruct
Message-ID: <1995Jan15.170110.183@leeds.ac.uk>
Date: Sun, 15 Jan 1995 17:01:10 +0000 (GMT)
X-Newsreader: TIN [version 1.2 PL2]
Lines: 18

Hi,

Is it possible to declare a stucture slot setter before the structure itself
is defined?  For example:

(defun test (struct)
  (setf (ex-val struct) 'a))

(defstruct ex
  (val 'b))

Clearly I can reorganise the code but I was wondering if it is possible.

Thanks for your help,

Rod
--
Roderick Williams          R.J.Williams@cbl.leeds.ac.uk
