See Original text in context
method name(--> Str)
Returns the name of the variable.
See Original text in context
method name(Routine: --> Str)
Returns the name of the sub or method.
See Original text in context
method name()
Returns the name of the enclosed code, or <anon>
if it has not received any.
See Original text in context
method name(--> Str)
Returns the name of the variable that has not been found.
See Original text in context
method name()
Returns the name of the metaobject, if any.
say 42.^name; # OUTPUT: «Int»
See Original text in context
method name(Scalar: --> Str)
Returns the name associated with the container.
Example:
my = 42;say .VAR.name; # OUTPUT: «$x»
See Original text in context
Not terribly useful, returns the name of the defined label:
A: while True
See Original text in context
method name(--> Str)
Abstract method that would return the primary name of the encoding.
See Original text in context
method name(--> Str)
Returns the name of the attribute that triggered this error.
See Original text in context
method register(Encoding --> Nil)
Register a new Encoding.
See Original text in context
method name(Thread: --> Str)
Returns the user defined string, which can optionally be set during object creation in order to identify the Thread
, or '<anon>' if no such string was specified.
my = Thread.new(code => );my = Thread.new(code => , name => 'my thread');say .name; # OUTPUT: «<anon>»say .name; # OUTPUT: «my thread»
See Original text in context
Instance method returning the name of the object.
See Original text in context
method name(Variable: str)
Returns the name of the variable, including the sigil.
See Original text in context
method name(--> Str)
Returns the name of the block.
See Original text in context
method name(--> Str)
Returns the name of the attribute.
See Original text in context
method name(--> Str)
Returns the name that was used for more than one parameter.
See Original text in context
Returns the path that symlink failed to create.
See Original text in context
method name(Parameter: --> Str)
Returns the parameter name, which includes all sigils and twigils. This name is used internally when applied to code, or in a declaration to determine the declared the name. This name is not necessarily usable by a caller – if it is, it will also appear as an alias. Often, the name will be chosen descriptively as a form of self-documentation.
If the parameter is anonymous, an empty string will be returned.
Note: Before Rakudo version 2020.08 the return value for an anonymous parameter was Nil
.
my Signature = :(Str , Bool);say .params[0].name; # OUTPUT: «$x»say .params[1].name; # OUTPUT: «»
See Original text in context
method name(--> Str)
Returns the name of the attribute
See Original text in context
Returns the name of the link that could not be created.
See Original text in context
method name()
Returns the name of a definite type.
See Original text in context
method name(Attribute: --> Str)
Returns the name of the attribute. Note that this is always the private name, so if an attribute is declared as has $.a
, the name returned is $!a
.
my = Foo.^attributes(:local)[0];say .name; # OUTPUT: «@!bar»