Various questions on .ref and .meta

0 views
Skip to first unread message

Ingo Blechschmidt

unread,
Aug 5, 2005, 8:02:53 AM8/5/05
to perl6-l...@perl.org
Hi,

~Str; # "<class>"? "Str"?
~::Str; # "<class>"? "Str"?
~Str.meta; # "<class>"? (fill in please)?
~::Str.meta; # "<class>"? (fill in please)?

+Str; +::Str;
+Str.meta; +::Str.meta; # all errors?

?Str; ?::Str;
?Str.meta; ?::Str.meta; # all true?

Str =:= ::Str; # true?

"some string".ref =:= Str; # true?

Str.ref; # (fill in please)
::Str.ref; # (fill in please)

Str.meta.ref; # (fill in please)
::Str.meta.ref; # (fill in please)

Str.ref.ref; # (fill in please)
::Str.ref.ref; # (fill in please)


--Ingo

--
Linux, the choice of a GNU | "The future is here. It's just not widely
generation on a dual AMD | distributed yet." -- William Gibson
Athlon! |

Luke Palmer

unread,
Aug 5, 2005, 2:07:39 PM8/5/05
to Ingo Blechschmidt, perl6-l...@perl.org
On 8/5/05, Ingo Blechschmidt <ibl...@web.de> wrote:
> Hi,
>
> ~Str; # "<class>"? "Str"?

"Str"

> ~::Str; # "<class>"? "Str"?

I don't know how :: works anymore. I'll avoid these.

> ~Str.meta; # "<class>"? (fill in please)?

"Class"

> ~::Str.meta; # "<class>"? (fill in please)?
>
> +Str; +::Str;
> +Str.meta; +::Str.meta; # all errors?

Yep... unless Str somehow specifies that it can be numified, which it shouldn't.

> "some string".ref =:= Str; # true?

Yeah, if .ref is what we end up calling it.

> Str.ref; # (fill in please)

Class ?

> Str.meta.ref; # (fill in please)

ETOOMUCHMETA at Luke line 40.

I don't know about this one.

Luke

Reply all
Reply to author
Forward
0 new messages