gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Re: type-of/class-of problem


From: Camm Maguire
Subject: [Gcl-devel] Re: type-of/class-of problem
Date: 22 Nov 2006 15:28:54 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings, and thanks!

This should be fixed now.

For those interested, GCL now has si::fpvec, si::type-spec, and
(si::list-of foo) types for vectors with fill pointers, type
specifications, and proper-lists of all the same objects.

Take care,

Robert Boyer <address@hidden> writes:

> >From the ANSI:
> 
>    The type returned by type-of is always a recognizable subtype of the
>    class returned by class-of.  That is,
> 
>     (subtypep (type-of object) (class-of object)) => true, true
> 
> Bob
> 
> -------------------------------------------------------------------------------
> 
> % 4
> GCL (GNU Common Lisp)  2.7.0 ANSI    Nov 22 2006 08:05:50
> ...
> >(subtypep (type-of "not_a_variable") (class-of "not_a_variable"))
> 
> Error: 
> Fast links are on: do (si::use-fast-links nil) for debugging
> Signalled by EVAL.
> Condition in SYSTEM:TOP-LEVEL [or a callee]: INTERNAL-SIMPLE-TYPE-ERROR: 
> #<Built-In-Class STRING 311056720> is not of type (OR
>                                                                               
>                                               SYMBOL
>                                                                               
>                                               SYSTEM:PROPER-LIST): 
> 
> Broken at EVAL.  Type :H for Help.
>  1 (Continue) supply a new value of SYSTEM::T2.
>  2 Return to top level.
> >>
> 
> 

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]