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

LTA error message when doing ::('') in Rakudo #2853

Closed
p6rt opened this issue Aug 8, 2012 · 5 comments
Closed

LTA error message when doing ::('') in Rakudo #2853

p6rt opened this issue Aug 8, 2012 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 8, 2012

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

Searchable as RT114430$

@p6rt
Copy link
Author

p6rt commented Aug 8, 2012

From @masak

<masak> is there any way to call a sub called '​::(name)'? :)
<jnthn> :​:('​::(name)')()
<jnthn> uh
<jnthn> :​:('&​::(name)')() # more likely
<masak> r​: constant name = 'foo'; sub :​:(name) () { 42 }; say :​:('​::(name)')()
<p6eval> rakudo 34e8d4​: OUTPUT«Start of substr out of range. Is​: 1,
should be in 0..0␤ in method Str [...]
<masak> oh wow.
<masak> r​: :​:('')
<p6eval> rakudo 34e8d4​: OUTPUT«Start of substr out of range. Is​: 1,
should be in 0..0␤ in method Str [...]
* masak submits rakudobug
<jnthn> oh, duh
<jnthn> :​:('...') pays attention to :​:s
<jnthn> So it will try to split on them
<jnthn> I wanted :​:{'&​::(name)'}()
<masak> r​: constant name = 'foo'; sub :​:(name) () { 42 }; say :​:{'&​::(name)'}()
<p6eval> rakudo 34e8d4​: OUTPUT«42␤»
<masak> \o/
<jnthn> But yes, the error for giving something wrong to interpolation
is LTA there.
<masak> this all goes into the ticket.
<jnthn> If you're going to file that substr thing it is a separate ticket.
<jnthn> (to implemeting indirect method name support)
<masak> that's the one I'm filing.

@p6rt
Copy link
Author

p6rt commented Mar 19, 2015

From @peschwa

On Wed Aug 08 05​:58​:14 2012, masak wrote​:

<masak> is there any way to call a sub called '​::(name)'? :)
<jnthn> :​:('​::(name)')()
<jnthn> uh
<jnthn> :​:('&​::(name)')() # more likely
<masak> r​: constant name = 'foo'; sub :​:(name) () { 42 }; say
:​:('​::(name)')()
<p6eval> rakudo 34e8d4​: OUTPUT«Start of substr out of range. Is​: 1,
should be in 0..0␤ in method Str [...]
<masak> oh wow.
<masak> r​: :​:('')
<p6eval> rakudo 34e8d4​: OUTPUT«Start of substr out of range. Is​: 1,
should be in 0..0␤ in method Str [...]
* masak submits rakudobug
<jnthn> oh, duh
<jnthn> :​:('...') pays attention to :​:s
<jnthn> So it will try to split on them
<jnthn> I wanted :​:{'&​::(name)'}()
<masak> r​: constant name = 'foo'; sub :​:(name) () { 42 }; say
:​:{'&​::(name)'}()
<p6eval> rakudo 34e8d4​: OUTPUT«42␤»
<masak> \o/
<jnthn> But yes, the error for giving something wrong to interpolation
is LTA there.
<masak> this all goes into the ticket.
<jnthn> If you're going to file that substr thing it is a separate
ticket.
<jnthn> (to implemeting indirect method name support)
<masak> that's the one I'm filing.

Current behavior​:

11​:12 <psch> m​: { :​:(''); CATCH { default { .perl.say } } }
11​:12 <camelia> rakudo-moar 3d6a73​: OUTPUT«X​::NoSuchSymbol.new(symbol =>
  "")␤»

I've added a test for that typed exception in roast commit c0f5cf283a90e143c286.

@p6rt
Copy link
Author

p6rt commented Mar 19, 2015

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

@p6rt
Copy link
Author

p6rt commented Jul 10, 2015

From @coke

On Thu Mar 19 04​:13​:32 2015, peschwa@​gmail.com wrote​:

On Wed Aug 08 05​:58​:14 2012, masak wrote​:

<masak> is there any way to call a sub called '​::(name)'? :)
<jnthn> :​:('​::(name)')()
<jnthn> uh
<jnthn> :​:('&​::(name)')() # more likely
<masak> r​: constant name = 'foo'; sub :​:(name) () { 42 }; say
:​:('​::(name)')()
<p6eval> rakudo 34e8d4​: OUTPUT«Start of substr out of range. Is​: 1,
should be in 0..0␤ in method Str [...]
<masak> oh wow.
<masak> r​: :​:('')
<p6eval> rakudo 34e8d4​: OUTPUT«Start of substr out of range. Is​: 1,
should be in 0..0␤ in method Str [...]
* masak submits rakudobug
<jnthn> oh, duh
<jnthn> :​:('...') pays attention to :​:s
<jnthn> So it will try to split on them
<jnthn> I wanted :​:{'&​::(name)'}()
<masak> r​: constant name = 'foo'; sub :​:(name) () { 42 }; say
:​:{'&​::(name)'}()
<p6eval> rakudo 34e8d4​: OUTPUT«42␤»
<masak> \o/
<jnthn> But yes, the error for giving something wrong to
interpolation
is LTA there.
<masak> this all goes into the ticket.
<jnthn> If you're going to file that substr thing it is a separate
ticket.
<jnthn> (to implemeting indirect method name support)
<masak> that's the one I'm filing.

Current behavior​:

11​:12 <psch> m​: { :​:(''); CATCH { default { .perl.say } } }
11​:12 <camelia> rakudo-moar 3d6a73​: OUTPUT«X​::NoSuchSymbol.new(symbol
=>
"")␤»

I've added a test for that typed exception in roast commit
c0f5cf283a90e143c286.

There's a passing test; resolving ticket.
--
Will "Coke" Coleda

@p6rt p6rt closed this as completed Jul 10, 2015
@p6rt
Copy link
Author

p6rt commented Jul 10, 2015

@coke - 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