[Openmcl-devel] make-fd-stream

julian at cipht.net julian at cipht.net
Mon Sep 26 10:34:25 UTC 2005


On Sun, Sep 25, 2005 at 11:11:07PM -0600, Gary Byers wrote:
> MAKE-FD-STREAM takes a :CLASS argument, which is intended to be an
> abstract class from which (based on the :direction and :element-type
> arguments) a concrete subclass is derived.  This argument defaults
> to 'CCL::FD-STREAM; you probably want to pass 'FILE-STREAM here.
> 
> (let* ((fd (%open-fd-to-temporary-file)))
>    (ccl::make-fd-stream fd
>                         :direction :output
>                         :element-type whatever
>                         :class 'file-stream))
> 
> The result should be an instance of some subclass of FILE-STREAM,
> fully capable of seeking.

That worked perfectly.  Thanks again.

-- 
Julian Squires



More information about the Openmcl-devel mailing list