-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I/O error in underlying platform while running on Clozure #12
Comments
@bluejay77 I trimmed down your code mainly by removing comments. It's easier to diagnose when we have only the code that causes this particular problem. If the Also, I'm not getting the error with the version of shen-cl/sbcl that's current in the |
@tizoc I just tried loading the above code with the latest in
The macro would have converted this to Is this a problem introduced by the change from earlier or is this the expected behavior? Does one have to list every external symbol in the package declaration? I never completely understood the package macro. |
I didn't think about this when making the change, but yes, the behaviour change comes with the modification. Not sure about what the "correct" behaviour should be, in Shen/Scheme it behaves as you are seeing now, the idea being that the I like how that works, but I understand that it is not very convenient, and breaking the old behaviour is a problem. What I'm thinking now is that Shen/CL could override I'm going to do that in Shen/Scheme because I just noticed that by not doing so I leave open the option of overriding native functions, and that breaks stuff:
What do you think? sounds good? |
I guess that would work in this case. (I get a little confused about the behavior of the package macro and prefixes here...) What about non-interop functions? If I have a package (Deleted some ranting until I better understand the issue) |
You have to declare everything that is not a sysfunc in the export list, otherwise it is going to be prefixed. For names internal to other packages you can just use
Note that Consider that It is not something we should change anyway, it would just make Shen BSD incompatible with Shen Professional, so just accept it for what it is and don't get stressed over it. If I were to use Shen for bigger programs I would probably just write my own thing to better organise code instead of depending on |
@tizoc Seems weird to me, but not a huge deal. I never written enough Shen to need packages. The |
@bluejay77 I forgot for a moment that this issue is actually about the error I haven't been able to reproduce this with ccl, sbcl or clisp using what's currently in the master branch. Have you seen this more than once? Does it happen reliably? It might be something with your terminal - do you use anything special for your terminal? What OS and OS version are you using? |
I have seen the error several times. It happens repeatedly. The terminal is a standard one I think.... Will try to change it to another one, however. I use the Debian Linux, I think v.9.4.0. AJY |
I changed the terminal to another one. The "mystic" error will not occur any more. Weird. Bug with the Linux Debian? I don't know! AJY |
FYI, I was able to reproduce this on Ubuntu (derived from Debian). This appears to happen when all of the following conditions are met:
|
I m creating a Shen OO capability based on Paul Graham's book On Lisp,
Ch 25, Object-Oriented LISP.
A version of this capability is in the file oo.shen.
An attempt to track the function (create-class...) makes Shen crash:
yours, Dr Antti J Ylikoski
Helsinki, Finland, the EU
I did not find a way to attach a file, I will insert the Shen code below:
The text was updated successfully, but these errors were encountered: