[Openmcl-devel] Contribution to ccl

Loïc Maury lmaury at gmail.com
Mon Feb 10 13:16:30 UTC 2014


Hello Matthew,

I think I have found the issue.

The function seem to be a low level lisp functionality, and the code is
inside
ccl/level-1/l1-streams : (defun open (filename &key (direction :input) ....
line
number 5862.

If we see below, inside the function, we can see the call to the function
make-file-stream, this function is defined inside the ccl/level-1/l1-sysio
(defun make-file-stream (filename .... line 761

For what I understand, it verify if it is "if-exists" or
"if-does-not-exist".
If we are in the case of if-exists and when the keyword follow is
":supersede" do the action for supersede, but it seem that :rename are not
implemented ?

In result of that if I do : (open "foo" :if-exists :supersede :direction
:output),
and replace :rename by :supersede, (foo already exist in directory),

I have a new foo created and the old renamed but temporarily (I think that
follow the standard), and deleted at the end (if we use the close function).

foo the new file
46077910582870627.tem the old temporarily renamed file

if I'm right, I will impement here :rename, without remove the old file,
(but
rename-and-delete shall do that ?), I propose for example

foo the new file
foo.bak the old

What do you think ?

Thank you

Loic





On Sat, Feb 8, 2014 at 6:05 AM, R. Matthew Emerson <rme at clozure.com> wrote:

>
> On Feb 7, 2014, at 7:23 AM, Loïc Maury <lmaury at gmail.com> wrote:
>
> My name is Loic Maury, and I'am following the project since some months.
>
> I have now decided to contribute and I think I find an issue where I can
> starting :
>
> http://trac.clozure.com/ccl/ticket/667. But someone already work on this
> ticket,
>
> or I can work on it ?
>
>
> Thanks for asking.
>
> I don't believe we have anyone working on that ticket.  If you would like
> to work on it, go right ahead.  If you need to, ask questions either here
> or as comments on the Trac ticket (make a Trac account at
> http://trac.clozure.com/ccl/register).
>
> When you have a good patch ready, I'll be glad to apply it.
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clozure.com/pipermail/openmcl-devel/attachments/20140210/0c90eacb/attachment.html>


More information about the Openmcl-devel mailing list