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

$*GROUP turns into IdName after being IdFetch (say $*GROUP; say WHAT $*GROUP) #5308

Closed
p6rt opened this issue May 8, 2016 · 6 comments
Closed

Comments

@p6rt
Copy link

p6rt commented May 8, 2016

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

Searchable as RT128099$

@p6rt
Copy link
Author

p6rt commented May 8, 2016

From @AlexDaniel

Code​:
say WHAT $*GROUP; say $*GROUP

Result​:
(IdFetch)
alex (1000)

↑ That works!

But this ↓ does not.

Code​:
say $*GROUP; say WHAT $*GROUP

Result​:
alex (1000)
Cannot look up attributes in a type object
  in block <unit> at -e line 1

Huh?

Code​:
say $*GROUP.WHICH;
say $*GROUP;
say $*GROUP.WHICH

Result​:
IdFetch|175554464
alex (1000)
IdName|171798680

Related source​: https://github.com/rakudo/rakudo/blob/nom/src/core/Process.pm

<RabidGravy> yeah, type smileys on the .gist would fix that

@p6rt
Copy link
Author

p6rt commented May 8, 2016

From @AlexDaniel

Same thing with $*USER

@p6rt
Copy link
Author

p6rt commented May 13, 2016

From @lizmat

Fixed with 4b1acbb , closable with tests

On 08 May 2016, at 15​:53, Alex Jakimenko (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Alex Jakimenko
# Please include the string​: [perl #​128099]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128099 >

Code​:
say WHAT $*GROUP; say $*GROUP

Result​:
(IdFetch)
alex (1000)

↑ That works!

But this ↓ does not.

Code​:
say $*GROUP; say WHAT $*GROUP

Result​:
alex (1000)
Cannot look up attributes in a type object
in block <unit> at -e line 1

Huh?

Code​:
say $*GROUP.WHICH;
say $*GROUP;
say $*GROUP.WHICH

Result​:
IdFetch|175554464
alex (1000)
IdName|171798680

Related source​: https://github.com/rakudo/rakudo/blob/nom/src/core/Process.pm

<RabidGravy> yeah, type smileys on the .gist would fix that

@p6rt
Copy link
Author

p6rt commented May 13, 2016

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

@p6rt
Copy link
Author

p6rt commented Jul 9, 2016

From @zoffixznet

Tests added​: Raku/roast@191c957564

@p6rt
Copy link
Author

p6rt commented Jul 9, 2016

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

@p6rt p6rt closed this as completed Jul 9, 2016
@p6rt p6rt added the testneeded label Jan 5, 2020
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