Issue #1274 has been updated by Fujin.

Status changed from Unreviewed to Needs design decision
Assigned to changed from community to Luke

Any comments on this one?

I'm of the opinion that "words" (class names) should always begin with a 
alphabetical character (non-numeric)
----------------------------------------
Bug #1274: class names cannot begin with a digit
http://reductivelabs.com/redmine/issues/show/1274

Author: marthag
Status: Needs design decision
Priority: Normal
Assigned to: Luke
Category: language
Target version: 
Complexity: Unknown
Patch: None


While a digit-only class name works, a class name that begins with one or more 
digits followed by a letter fails:

<pre>
# cat test.pp
class 1foo {
 notice("test")
}
# puppet test.pp
Could not parse for environment development: Syntax error at 'foo' at 
/tmp/test.pp:1
# cat test1.pp
class 1 {
 notice("test")
}
# puppet test1.pp
# cat test2.pp
class foo1 {
 notice("test")
}
# puppet test2.pp
# cat test3.pp
class f1oo {
 notice("test")
}
# puppet test3.pp
# cat test4.pp
class 123foo {
 notice("test")
}
# puppet test4.pp
Could not parse for environment development: Syntax error at 'foo' at 
/tmp/test4.pp:1
#

</pre>


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to