On Tuesday, June 26, 2012 5:14:32 AM UTC-5, Stephen Gran wrote:
>
> I disagree that instantiating a class twice with identical (especially 
> default) parameters should result in an error.  A class is a singleton, 
> unlike a define, so should not be indexed solely on it's name.  It 
> should be an error to try to redefine the parameters that you 
> instantiate a class with, of course. 
>

I sympathize and agree in principle with the view that it should be 
possible to re-declare the same parameterized class provided the parameters 
are all the same.  Nevertheless, that has never been possible with Puppet 
2.x's parameterized class declaration syntax.  At the time that syntax and 
its rules were designed, the prevailing view at Puppetlabs was apparently 
that the resulting constraints were acceptable.  It's one of the reasons I 
find parameterized classes *un*acceptable, but I can't call it a bug per se.

I have been told that this will be better in Puppet 3, but I have not 
checked whether that's so. 


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/gYn-8wZQak4J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to