unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: David Kastrup <dak@gnu.org>
To: 18223@debbugs.gnu.org
Subject: bug#18223: And here's direct proof that the doc is wrong:
Date: Sat, 09 Aug 2014 12:20:28 +0200	[thread overview]
Message-ID: <8761i27ymr.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <1407505351-26741-1-git-send-email-dak@gnu.org>


scheme@(guile-user)> (define wooziness (make-object-property))
scheme@(guile-user)> (set! (wooziness 5) #t)
$1 = #t
scheme@(guile-user)> (wooziness 5)
$2 = #t
scheme@(guile-user)> (set! (wooziness 1000000000000000000) #t)
$3 = #t
scheme@(guile-user)> (wooziness 1000000000000000000)
$4 = #f
scheme@(guile-user)> 

The property persists for 5 and evaporates for 1000000000000000000.
There is no reliable way to know whether it will persist for numbers.

And since Guile refuses to commit to guaranteeing (lambda (x) (eq? x x))
to return #t when x may be a number and since there is no guarantee just
which numbers may be represented by immediate values, there is no
context in which an object property on a number may safely be retrieved.

-- 
David Kastrup





      parent reply	other threads:[~2014-08-09 10:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-08 13:42 bug#18223: [PATCH] Fix thinko concerning object property docs David Kastrup
2014-08-09  9:46 ` bug#18223: Duplicate of issue 14792 David Kastrup
2014-08-09 12:16   ` Nala Ginrut
2014-08-09 12:21     ` David Kastrup
2014-08-11  3:00   ` bug#14792: " Mark H Weaver
2014-08-09 10:20 ` David Kastrup [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761i27ymr.fsf@fencepost.gnu.org \
    --to=dak@gnu.org \
    --cc=18223@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).