I expect all output ports to work the same way because (at least) (type (outstring)) and (type (outfile)) gives me the same: 'output. But inside doesn't work with file port. I don't say it must. But either the types must be different or they must behave the same way. (Maybe inside for file ports should return nil? I don't know.) Could anyone explain me the logic if this behavior is intentional? |