>
> Regards,
>
> Emiliano
>
>
> --
> *From:* Brandon Allbery
> *Sent:* Tuesday, February 23, 2016 2:21 AM
> *To:* TS xx
> *Cc:* perl6-us...@perl.org
>
> *Subject:* Re: Need help with Nil values
> On Mon, Feb 22, 2016 at 9:15 PM, TS xx wrote:
>
&g
Thanks Brandon,
That was what I was looking for.
I'm trying it already.
Regards,
Emiliano
From: Brandon Allbery
Sent: Tuesday, February 23, 2016 2:21 AM
To: TS xx
Cc: perl6-us...@perl.org
Subject: Re: Need help with Nil values
On Mon, Feb 22, 2016
Thanks,
That was it.
Somtimes I get confused with the way other languages treat undefined/null/nil
values.
Regards,
Emiliano
From: Timo Paulssen
Sent: Tuesday, February 23, 2016 2:20 AM
To: perl6-us...@perl.org
Subject: Re: Need help with Nil values
On Mon, Feb 22, 2016 at 9:15 PM, TS xx wrote:
> I expect $.value to hold Strings, but I want to be able to instantiate
> MyClass whether I have a value already or not, and I also want to be able
> to tell if $.value has a real String or not. Is this possible?
You don't want Nil there; it's not
Hello Emiliano,
In this case, I think you may want to use just "Str" instead of "Nil".
"Str" is the "type object" for Str objects, and you can check whether
it's a string like "foo" or just the Str object by checking $!value.defined.
There's a FAQ answer that's about "Any", but it works the s
Dear perl 6 users,
I am trying to pass a Nil value to a method new of a class that expects a Str.
The method new will assign this Nil value to a Str member variable. Then, this
value will change during runtime.
At the moment I am getting this error: Type check failed in binding $value;
expec