Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#18 current-input-port should be stdin

open
nobody
Patch (2)
5
2013-07-09
2010-11-15
nimiezko
No

There is confusion between inport and loadport.
The read-char, read... functions try to read from the currently loaded file rather than standard input.

Discussion

  • Kevin Cozens
    Kevin Cozens
    2011-01-02

    I'm rejecting the first part of the patch which modifies opdefines.h as it would allow up to 2 arguments for open-input-file but the R5RS only shows 1 argument as valid. I need to take a closer look at the changes for the scheme.c file.

     
  • nimiezko
    nimiezko
    2011-02-20

    Patch is not meant to be applied. Just a workaround that worked for me.
    I have not sufficient skills to produce a better patch.

     
  • Kevin Cozens
    Kevin Cozens
    2013-03-25

    • labels: --> Patch
     
    Last edit: Kevin Cozens 2013-03-25
  • James Woodcock
    James Woodcock
    2013-07-09

    I think I have found a fix for this issue. I have attached a patch.

     
    Attachments
  • James Woodcock
    James Woodcock
    2013-07-09

    Here's a simple test case. inport_test.readme explains how it works.

     
    Attachments