Title: Message Title
Erik Dalén commented on an issue
Puppet / Bug PUP-1032
The function API has "interesting" type conversions
The type of parameters passed to functions is just weird:
foo(1) - String "1"
foo(1+1) - String "2"
foo($processorcount) - Numeric
foo(1*1) - Numeric 1
foo(1.0) - String "1.0"
foo(1.0+1) - Numeric 2.0
foo(1.0*1) - Numeric 1.0
foo("1"+"1") - String "2"
foo(undef) - String ""

--
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to