| Variável :: fortemente :: tipado :: array Variável :: fortemente :: Typed :: Array é um módulo Perl para uma matriz fortemente digitada. |
Baixe Agora |
Variável :: fortemente :: tipado :: array Classificação e resumo
- Licença:
- Perl Artistic License
- Nome do editor:
- Mark Ethan Trostler
- Site do editor:
- http://search.cpan.org/~metzzo/Java-4.7/Java.pm
Variável :: fortemente :: tipado :: array Tag
Variável :: fortemente :: tipado :: array Descrição
Variável :: fortemente :: Typed :: Array é um módulo Perl para uma matriz fortemente digitada. Variável :: Fortice :: Typed :: Array é um módulo Perl para array tipado fortemente. Classe Classe é utilizado por variável :: fortemente :: digitado - você não acessa isso diretamente meu @array_of_ints: tipo ('int'); # Cada slot deve conter um int my @array_of_rgb: digite (red_green_blue); # Meu tipo enumerado # ... e depois ... $ array_of_intts = 44; # Groovy $ array_of_ints = 'yah'; # Croak! # Retorno 1 se este val é vermelho, azul ou verde # 0 caso contrário sub red_green_blue {$ _ = shift; / Um vermelho z / xms || / A Blue Z / XMS || / A verde z / xms; } $ array_of_my_very_own_types = 99; # Croak! $ array_of_my_very_own_types = 'azul'; # OK! Requisitos: · Perl.
Variável :: fortemente :: tipado :: array Software Relacionado