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

time and now terms are broken in Rakudo #2153

Closed
p6rt opened this issue Sep 17, 2010 · 6 comments
Closed

time and now terms are broken in Rakudo #2153

p6rt opened this issue Sep 17, 2010 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Sep 17, 2010

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

Searchable as RT77904$

@p6rt
Copy link
Author

p6rt commented Sep 17, 2010

From @moritz

11​:17 < moritz_> rakudo​: say now
11​:17 <+p6eval> rakudo 2c8bb8​: OUTPUT«Could not find sub &now␤ in main
program
  body at line 22​:/tmp/NfyPhq3Vve␤»
11​:17 < moritz_> I thought that worked?
11​:19 < moritz_> rakudo​: time
11​:19 <+p6eval> rakudo 2c8bb8​: OUTPUT«Could not find sub &time␤ in main
  program body at line 22​:/tmp/VN3fzPeGjd␤»

I guess it was broken by e682712b418bcd2aadfc9a9cefdeac427fade722

@p6rt
Copy link
Author

p6rt commented Sep 17, 2010

From @Kodiologist

On Fri Sep 17 02​:26​:49 2010, moritz wrote​:

11​:17 < moritz_> rakudo​: say now
11​:17 <+p6eval> rakudo 2c8bb8​: OUTPUT«Could not find sub &now␤ in main
program
body at line 22​:/tmp/NfyPhq3Vve␤»
11​:17 < moritz_> I thought that worked?
11​:19 < moritz_> rakudo​: time
11​:19 <+p6eval> rakudo 2c8bb8​: OUTPUT«Could not find sub &time␤ in main
program body at line 22​:/tmp/VN3fzPeGjd␤»

I guess it was broken by e682712b418bcd2aadfc9a9cefdeac427fade722

'now' and 'time' seem to work fine except in an -e string, and in an
-e string they'll still work—unless one of them is at the very end,
without any trailing whitespace or semicolons.

@p6rt
Copy link
Author

p6rt commented Sep 17, 2010

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

@p6rt
Copy link
Author

p6rt commented Feb 2, 2011

From @pmichaud

'time' and 'now' seem to work even in a -e string​:

pmichaud@​orange​:~/rakudo$ ./perl6 -e 'say time'
1296682851
pmichaud@​orange​:~/rakudo$ ./perl6 -e 'say now'
Instant​:2011-02-02T21​:40​:55.901512Z

I'm guessing this ticket can be closed if we have sufficient spectests
for 'time' and 'now'.

Pm

@p6rt
Copy link
Author

p6rt commented Feb 23, 2011

From @zhuomingliang

I think it can be closed. there was already some tests use time && now.
see S29-context/sleep.t and S32-temporal/DateTime.t

@p6rt
Copy link
Author

p6rt commented Feb 23, 2011

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

@p6rt p6rt closed this as completed Feb 23, 2011
@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