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

$*BASETIME is not defined #5040

Closed
p6rt opened this issue Jan 11, 2016 · 4 comments
Closed

$*BASETIME is not defined #5040

p6rt opened this issue Jan 11, 2016 · 4 comments
Labels
NYI Features not yet implemented

Comments

@p6rt
Copy link

p6rt commented Jan 11, 2016

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

Searchable as RT127241$

@p6rt
Copy link
Author

p6rt commented Jan 11, 2016

From @zoffixznet

The Perl 5's variable $^T contains the time when the program was started. Attempting to use it in Perl 6 produces an error, saying one needs to use $*BASETIME instead. However, $*BASETIME is not defined​:

<leont> m​: say $^T
<camelia> rakudo-moar aefe2c​: OUTPUT«===SORRY!=== Error while compiling /tmp/nS5muYIOYN␤Unsupported use of $^T variable; in Perl 6 please use $*BASETIME␤at /tmp/nS5muYIOYN​:1␤------> say $^T⏏<EOL>␤»
<leont> m​: say $*BASETIME
<camelia> rakudo-moar aefe2c​: OUTPUT«Dynamic variable $*BASETIME not found␤ in block <unit> at /tmp/Ld6DfGh5vL line 1␤␤Actually thrown at​:␤ in block <unit> at /tmp/Ld6DfGh5vL line 1␤␤»

@p6rt
Copy link
Author

p6rt commented Jan 11, 2016

From @lizmat

On 11 Jan 2016, at 18​:57, Zoffix Znet (via RT) <perl6-bugs-followup@​perl.org> wrote​:

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

The Perl 5's variable $^T contains the time when the program was started. Attempting to use it in Perl 6 produces an error, saying one needs to use $*BASETIME instead. However, $*BASETIME is not defined​:

<leont> m​: say $^T
<camelia> rakudo-moar aefe2c​: OUTPUT«===SORRY!=== Error while compiling /tmp/nS5muYIOYN␤Unsupported use of $^T variable; in Perl 6 please use $*BASETIME␤at /tmp/nS5muYIOYN​:1␤------> say $^T⏏<EOL>␤»
<leont> m​: say $*BASETIME
<camelia> rakudo-moar aefe2c​: OUTPUT«Dynamic variable $*BASETIME not found␤ in block <unit> at /tmp/Ld6DfGh5vL line 1␤␤Actually thrown at​:␤ in block <unit> at /tmp/Ld6DfGh5vL line 1␤␤»

Fixed with 15b4a8f , can be closed.

Liz

@p6rt
Copy link
Author

p6rt commented Jan 11, 2016

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

@p6rt
Copy link
Author

p6rt commented Jan 11, 2016

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

@p6rt p6rt closed this as completed Jan 11, 2016
@p6rt p6rt added the NYI Features not yet implemented label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NYI Features not yet implemented
Projects
None yet
Development

No branches or pull requests

1 participant