|
From: | Alexander Mattausch |
Subject: | Re: DefineClasses help |
Date: | Tue, 25 Feb 2003 17:29:44 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2.1) Gecko/20021130 |
Andrew Stribblehill schrieb:
But there are circumstances under which it is sensible to define a class only if a part of the file has been edited, as in this case. Suse e.g. is now using a similar concept with config files in /etc/sysconfig that may be read by several daemons. Editing such a file means, for example, that all daemons are restarted, although only one would have been necessary. Intuitively I'd put the DefineClasses statement in a BeginGroup/EndGroup, then.DefineClasses is defined whenever any part of your file is edited. Mark actually put some test into the editfiles source to stop people getting confused by trying this. The error message is: Class definitions inside conditionals or loops are not allowed
Regards, Alex
[Prev in Thread] | Current Thread | [Next in Thread] |