Hi,<div><br></div><div>I could not find a way to write the following:</div><div><br></div><div>(defmacro f (ptr struct field val)</div><div> `(setf (pref ,ptr ,type.,field) ,val))</div><div><br></div><div><div>> (f ptr :<XC>olor pixel 0)</div>
<div><div>> (f ptr :<XC>olor flag 0)</div><div>....</div><div><br></div><div>Normally the accessor of pref is a concatenation of the structure </div><div>type and field names separated by a dot.</div><div><br></div>
<div>In my case, for a given structure type (eg. <XC>olor) I would like</div><div>to set a given field of <XC>olor to a given value (the field name is</div><div>not hardcoded).</div><div><br></div></div></div>
<div>Thank you for your help</div><div><br></div><div>Kind regards</div><div>Taoufik</div><div><br></div>