It may just be a warning due to the pattern specified for the isvariable parameter, but if you recall, my original error said "Class identifier contains illegal characters" when I tried using "runtime_$(config[RUNTIME])" as the class name and I did not get a report. So it may be ok as an RHS value but not LHS.
Justin -----Original Message----- From: nwat...@symcor.com [mailto:nwat...@symcor.com] Sent: Wednesday, February 03, 2010 12:15 PM To: Justin Lloyd Cc: help-cfengine@cfengine.org; help-cfengine-boun...@cfengine.org Subject: RE: Defining classes using array values You idea does seem to work. The error seems more like a warning. cf3 + Private classes augmented: cf3 + runtime_one cf3 cf3 - Private classes diminished: cf3 cf3 cf3 cf3 ========================================================= cf3 reports in bundle neil (1) cf3 ========================================================= cf3 cf3 Verifying SQL table promises is only available with Cfengine Nova or above cf3 cf3 ......................................................... cf3 Promise handle: cf3 Promise made by: foo[1] is a variable with value one cf3 ......................................................... cf3 cf3 R: foo[1] is a variable with value one The class is defined. It is interesting to note that the warning: rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$.]+) Is missing '['. Sincerely, -- Neil Watson 416-673-3465 This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine