[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile 2.0.9, reader: Cannot 'read' an '*unspecified*' value
From: |
David Kastrup |
Subject: |
Re: Guile 2.0.9, reader: Cannot 'read' an '*unspecified*' value |
Date: |
Tue, 03 Nov 2015 16:26:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
> address@hidden (Taylan Ulrich "Bayırlı/Kammer") writes:
>
>> Artyom Poptsov <address@hidden> writes:
>>
>>> Hello Guilers,
>>>
>>> it seems that currently there's no way to 'read' back an
>>> '*unspecified*' value,
>
> *unspecified* works reasonably fine in most circumstances.
>
> scheme@(guile-user)> (make-vector 3)
> $1 = #(#<unspecified> #<unspecified> #<unspecified>)
> scheme@(guile-user)> #(#<unspecified> #<unspecified> #<unspecified>)
> While reading expression:
> ERROR: In procedure scm_lreadr: #<unknown port>:2:3: Unknown # object: #\<
> scheme@(guile-user)> #(*unspecified* *unspecified* *unspecified*)
> $2 = #(*unspecified* *unspecified* *unspecified*)
> scheme@(guile-user)>
>
> It seems like printing *unspecified* as #<unspecified> is not actually
> doing anybody much of a favor, though.
Though #(*unspecified* *unspecified* *unspecified*) is not actually an
alternative, being a vector of three symbols. Cough cough.
(vector *unspecified* *unspecified* *unspecified*)
does read back properly but of course that does not turn *unspecified*
into an actual print form of *unspecified*. Sorry for this particular
brain fart.
--
David Kastrup