Search found 2 matches

by djpeebz
Thu May 26, 2011 2:48 pm
Forum: Common Lisp
Topic: Checking consistency between class slots
Replies: 3
Views: 4254

Re: Checking consistency between class slots

Many thanks to you both. I have managed to develop a solution using (defmethod initialize-instance :after ...) My problem arose because I misunderstood how this worked.

Thanks again
by djpeebz
Sun May 22, 2011 6:52 am
Forum: Common Lisp
Topic: Checking consistency between class slots
Replies: 3
Views: 4254

Checking consistency between class slots

Hi, I want to check that the value of a slot in a class (defined when the class is created) is appropriate based on the values of other slots (e.g., in the example below that the value val is within the range of min and max) and to produce an error if this is not the case. I've not been able to find...