1 # Copyright (C) 2001-2003, The Perl Foundation.
6 config/inter/types.pm - Sizes for Parrot Types
10 Asks the user which size integer, floating-point number and opcode types should
20 use base
qw(Parrot::Configure::Step);
22 use Parrot
::Configure
::Utils
':inter';
28 $data{description
} = q{Determining what types Parrot should use};
34 my ( $self, $conf ) = @_;
36 my $intval = $conf->options->get('intval') || 'long';
37 my $floatval = $conf->options->get('floatval') || 'double';
38 my $opcode = $conf->options->get('opcode') || 'long';
40 if ( $conf->options->get('ask') ) {
41 $intval = prompt
( "\n\nHow big would you like your integers to be?", $intval );
42 $floatval = prompt
( "And your floats?", $floatval );
43 $opcode = prompt
( "What's your native opcode type?", $opcode );
60 # cperl-indent-level: 4
63 # vim: expandtab shiftwidth=4: