unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* scheme problem!
@ 2011-05-12 10:59 Stefan Israelsson Tampe
  2011-05-12 11:34 ` Pierpaolo Bernardi
  2011-05-12 22:02 ` Neil Jerram
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Israelsson Tampe @ 2011-05-12 10:59 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

Somewhere in the program I have,

(pk x)
(pk (caar l))
(pk (equal? x (caar l)))

It outputs

;;; (number)

;;; (number)

;;; (#f)



#f ???? is there more to this then meets the eye?
/Stefan

[-- Attachment #2: Type: text/html, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scheme problem!
  2011-05-12 10:59 scheme problem! Stefan Israelsson Tampe
@ 2011-05-12 11:34 ` Pierpaolo Bernardi
  2011-05-12 22:02 ` Neil Jerram
  1 sibling, 0 replies; 4+ messages in thread
From: Pierpaolo Bernardi @ 2011-05-12 11:34 UTC (permalink / raw)
  To: Stefan Israelsson Tampe; +Cc: guile-devel

On Thu, May 12, 2011 at 12:59, Stefan Israelsson Tampe
<stefan.itampe@gmail.com> wrote:
> Somewhere in the program I have,
>
> (pk x)
> (pk (caar l))
> (pk (equal? x (caar l)))
>
> It outputs
>
> ;;; (number)
>
> ;;; (number)
>
> ;;; (#f)
>
>
>
> #f ???? is there more to this then meets the eye?

You will get more significative replies if you post a snippet of code
which allows people to reproduce what you observe without having to
guess what could possibly be causing this.

P.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scheme problem!
  2011-05-12 10:59 scheme problem! Stefan Israelsson Tampe
  2011-05-12 11:34 ` Pierpaolo Bernardi
@ 2011-05-12 22:02 ` Neil Jerram
  2011-05-12 22:23   ` Stefan Israelsson Tampe
  1 sibling, 1 reply; 4+ messages in thread
From: Neil Jerram @ 2011-05-12 22:02 UTC (permalink / raw)
  To: Stefan Israelsson Tampe; +Cc: guile-devel

Stefan Israelsson Tampe <stefan.itampe@gmail.com> writes:

> Somewhere in the program I have,
>
> (pk x)
> (pk (caar l))
> (pk (equal? x (caar l)))
>
> It outputs
>
> ;;; (number)
>
> ;;; (number)
>
> ;;; (#f)
>
>
>
> #f ???? is there more to this then meets the eye?
> /Stefan

Well...

scheme@(guile-user)> (equal? 'number (make-symbol "number"))
$7 = #f

Is it possible that either or both of x and (caar l) is uninterned?

(As far as I recall, it's intended that uninterned symbols are
distinct.)

        Neil



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: scheme problem!
  2011-05-12 22:02 ` Neil Jerram
@ 2011-05-12 22:23   ` Stefan Israelsson Tampe
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Israelsson Tampe @ 2011-05-12 22:23 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 586 bytes --]

Oh well, I found the issue.

It was because of my special system. The printed representation of unify
variables
that point to a point to a point to a symbol got printed as a symbol. I
really need to tweak
the output to hint if it is a unify variable. And if wingo managed to
squeeze in tagging - so
much sweeter.

Anyway I have implemented

Subtypes
Parameter types
Recursive types
============

Now, the subtypes have been tested a little, the rest remains to be
debugged.
Also there is a weak key map of functions to types of the object that I use
to
record type signatures.

/Stefan

[-- Attachment #2: Type: text/html, Size: 664 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-12 22:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-12 10:59 scheme problem! Stefan Israelsson Tampe
2011-05-12 11:34 ` Pierpaolo Bernardi
2011-05-12 22:02 ` Neil Jerram
2011-05-12 22:23   ` Stefan Israelsson Tampe

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).