>>>>> "P" == Paul <ydbxmhc@yahoo.com> writes: P> means @a is an array that will be holding Str values. P> So I *could* do C-ish "typecasting" by taking an anonymous set of P> values and declaring them like this: P> @a = (1..3) is Str; # yes? bogus? I dunno. i think that is bogus. the trait (the 'is' stuff) must follow the declaration. traits affect variables and not values. also if @a was declared/used before this, i think that would be a compile time error to redeclare it. traits can only be used on a declaration and not on any general assignment. i don't think there is c style typecasting. you can assign to another type of var but its implementation has to decide if it likes the data you are giving it. it may allow it and internally do some 'casting'. and perl 'casting' usually would involve real munging of data or putting it in a different slot in the PMC or something. c's casting rarely changes the data (except for float/int) - it usually just changes the type. P> Can you set properties on sets like that? I know I could say P> @a is Str = 1..3; # right? you still need parens around that list (i think). P> But isn't that a different animal? maybe but one of the animals maybe mythical. :) uri -- Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com --Perl Consulting, Stem Development, Systems Architecture, Design and Coding- Search or Offer Perl Jobs ---------------------------- http://jobs.perl.orgThread Previous | Thread Next