bugMIT/GNU Scheme - Bugs: bug #56337, enumerate-graphics-types doesn't...

 
 

bug #56337: enumerate-graphics-types doesn't behave as documented.

Submitter:  John Wick <g6238>
Submitted:  Fri 17 May 2019 07:03:03 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect behavior
Status:  Fixed Privacy:  Public
Assigned to:  mhb Originator Name: 
Open/Closed:  Closed
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 17 May 2019 04:37:50 PM UTC, comment #1: 

Sorry about that, especially because this bug seems to be 20+ years old, and familiar.  Fixed in commit 7a371df58.

Our documentation does not lie, by definition. :-}

Matt Birkholz <mhb>
Group Member
Fri 17 May 2019 07:03:03 AM UTC, original submission:  

Documented here: https://www.gnu.org/software/mit-scheme/documentation/mit-scheme-ref/Opening-and-Closing-of-Graphics-Devices.html#Opening-and-Closing-of-Graphics-Devices

Supposedly, this function returns "a list of symbols which are the names of all the graphics device types that are supported by the Scheme system."

In reality, it returns a list of objects that are anything but symbols. Transcript:

    1 ]=> (enumerate-graphics-types)
   
    ;Loading "/usr/lib/i386-linux-gnu/mit-scheme/lib/prx11.so"... done
    ;Value 11: (#[graphics-type 12 x])
   
    1 ]=> (map symbol? (enumerate-graphics-types))
   
    ;Value 13: (#f)

Documentation should not lie.

John Wick <g6238>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mhb (Posted a comment)
  • -email is unavailable- added by g6238 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-17 mhb StatusNone Fixed
        Assigned toNone mhb
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code