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

Use of uninitialized value in Perl6/World.nqp #4635

Closed
p6rt opened this issue Oct 8, 2015 · 5 comments
Closed

Use of uninitialized value in Perl6/World.nqp #4635

p6rt opened this issue Oct 8, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Oct 8, 2015

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

Searchable as RT126302$

@p6rt
Copy link
Author

p6rt commented Oct 8, 2015

From @softmoth

#! /bin/sh

set -x
if [ ! -r lib/A/B.pm6 ]; then
  mkdir -p lib/A
  echo 'class A { use A​::B; }' > lib/A.pm6
  echo 'class A​::B { has $!foo is rw; }' > lib/A/B.pm6
fi

perl6 --version
perl6 -Ilib -e 'use A; say "OK";'

+ '[' '!' -r lib/A/B.pm6 ']'
+ mkdir -p lib/A
+ echo 'class A { use A​::B; }'
+ echo 'class A​::B { has $!foo is rw; }'
+ perl6 --version
This is perl6 version 2015.09-273-g53969ab built on MoarVM version
2015.09-55-gf09c782
+ perl6 -Ilib -e 'use A; say "OK";'
Use of uninitialized value % of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things,
if needed. in any mop_up_and_check at src/Perl6/World.nqp​:401
Potential difficulties​:
  useless use of 'is rw' on $!foo
  at /home/tsmith/p6/tmp/lib/A/B.pm6​:1
  ------> class A​::B { has $!foo is rw⏏; }
  from :1
  from -e​:1
OK

@p6rt
Copy link
Author

p6rt commented Jul 8, 2016

From @coke

On Thu Oct 08 09​:15​:56 2015, softmoth wrote​:

#! /bin/sh

set -x
if [ ! -r lib/A/B.pm6 ]; then
mkdir -p lib/A
echo 'class A { use A​::B; }' > lib/A.pm6
echo 'class A​::B { has $!foo is rw; }' > lib/A/B.pm6
fi

perl6 --version
perl6 -Ilib -e 'use A; say "OK";'

+ '[' '!' -r lib/A/B.pm6 ']'
+ mkdir -p lib/A
+ echo 'class A { use A​::B; }'
+ echo 'class A​::B { has $!foo is rw; }'
+ perl6 --version
This is perl6 version 2015.09-273-g53969ab built on MoarVM version
2015.09-55-gf09c782
+ perl6 -Ilib -e 'use A; say "OK";'
Use of uninitialized value % of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things,
if needed. in any mop_up_and_check at src/Perl6/World.nqp​:401
Potential difficulties​:
useless use of 'is rw' on $!foo
at /home/tsmith/p6/tmp/lib/A/B.pm6​:1
------> class A​::B { has $!foo is rw⏏; }
from :1
from -e​:1
OK

This now says​:

+ perl6 --version
This is Rakudo version 2016.05 built on MoarVM version 2016.05
implementing Perl 6.c.
+ perl6 -Ilib -e 'use A; say "OK";'
Potential difficulties​:
  useless use of 'is rw' on $!foo
  at /Users/williamcoleda/tm/lib/A/B.pm6 (A​::B)​:1
  ------> class A​::B { has $!foo is rw⏏; }
OK

Closable with tests.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 8, 2016

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

@p6rt
Copy link
Author

p6rt commented Sep 10, 2016

From @zoffixznet

Tests added Raku/roast@0c7d68f76d

@p6rt
Copy link
Author

p6rt commented Sep 10, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant