New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rand gets "invoke() not implemented in class 'Float' " - Revision: 28671 #145
Comments
From Andy_Bach@wiwb.uscourts.govThis was working: However, works. This fail the same way on at least 2 linux boxes for revision: 28671 uname -a a Andy Bach The name "grep" is from the common "ed" (pre-visual "vi") command: |
From @pmichaudOn Mon Jun 23 13:32:47 2008, Andy_Bach@wiwb.uscourts.gov wrote:
According to S29:295, the rand() function no longer takes any arguments: : =item rand I agree that Rakudo needs to give a better error message in this case, Thanks! Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaud[re-sending to cc: perl6-compiler@perl.org] On Mon Jun 23 13:32:47 2008, Andy_Bach@wiwb.uscourts.gov wrote:
According to S29:295, the rand() function no longer takes any arguments: : =item rand I agree that Rakudo needs to give a better error message in this case, Thanks! Pm |
From Andy_Bach@wiwb.uscourts.govHi Thanks for the replies: : =item rand Hmm, I'd've thought that meant that 'rand' takes no params and returns : In any case, for picking a random integer you probably want to use There's some missing methods s not yet, I guess: ./perl6 -e 'say (1 .. 6).pick' No 'pick' for Junction or any yet I tried a number whacks using prefix: but no get_string or get_integer for Junction makes them a little hard to Thanks. a Andy Bach The name "grep" is from the common "ed" (pre-visual "vi") command: |
From @pmichaudOn Tue, Jun 24, 2008 at 02:27:04PM -0500, Andy_Bach@wiwb.uscourts.gov wrote:
The first rand is a method on the Num type. Since it's not specified
Correct, we haven't implemented .pick on Range objects yet. I'm not
get_string and get_integer on junction should autothread to their In particular, C< say any(1..6) > should result in six invocations of Pm |
From @pmichaudOn Wed, Jun 25, 2008 at 12:49:35PM -0500, Patrick R. Michaud wrote:
Larry++ just reminded me on #perl6 that .pick (and .rand) are now Thanks! Pm [1] http://groups.google.com/group/perl.perl6.compiler/msg/acf1cfbb16b998cf |
From @pmichaudThe issue with error messages from arguments to rand() is fixed in Thanks! Pm |
1 similar comment
From @pmichaudThe issue with error messages from arguments to rand() is fixed in Thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#56266 (status was 'resolved')
Searchable as RT56266$
The text was updated successfully, but these errors were encountered: