Skip to content
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

Directive d not applicable for type Int #6672

Closed
p6rt opened this issue Feb 10, 2018 · 4 comments
Closed

Directive d not applicable for type Int #6672

p6rt opened this issue Feb 10, 2018 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 10, 2018

Migrated from rt.perl.org#132846 (status was 'resolved')

Searchable as RT132846$

@p6rt
Copy link
Author

p6rt commented Feb 10, 2018

From juhimarcel@gmail.com

Hi,

When an Int variable gets undefined, lets say $i, then $i.fmt('%d')
throws a message 'Directive d not applicable for type Int'.

The message is not ok because %d is applicable! %f throws the same error
but %s does some conversion and throws the proper messages about
uninitialized values.

Secondly, it lacks a line number and stack dump. Same for %f but not for %s.

I haven't tested other directives.

Regards,
Marcel

This is Rakudo version 2018.01-171-gc38764c61 built on MoarVM version
2018.01-82-g296620e86 implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Feb 11, 2018

From @zoffixznet

On Sat, 10 Feb 2018 11​:38​:50 -0800, juhimarcel@​gmail.com wrote​:

Hi,

When an Int variable gets undefined, lets say $i, then $i.fmt('%d')
throws a message 'Directive d not applicable for type Int'.

The message is not ok because %d is applicable! %f throws the same error
but %s does some conversion and throws the proper messages about
uninitialized values.

Secondly, it lacks a line number and stack dump. Same for %f but not for %s.

I haven't tested other directives.

Regards,
Marcel

This is Rakudo version 2018.01-171-gc38764c61 built on MoarVM version
2018.01-82-g296620e86 implementing Perl 6.c.

Thank you for the report. This is now fixed

Fixes​: Raku/nqp@2c51764e93
  rakudo/rakudo@d419afe462
  rakudo/rakudo@4ac67e7384
  rakudo/rakudo@684b99eaa8
  rakudo/rakudo@13406517ad
Tests​: Raku/roast@ceed491adb
  rakudo/rakudo@13406517ad

@p6rt
Copy link
Author

p6rt commented Feb 11, 2018

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt closed this as completed Feb 11, 2018
@p6rt
Copy link
Author

p6rt commented Feb 11, 2018

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant