Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - linli

#1
newLISP and the O.S. / A bug on Windows
November 09, 2009, 12:14:23 AM
I had the following problem:

> (change-dir "h:")
true
> (real-path)
"H:\"
> (change-dir "c:\a\b")
true
> (real-path)
"c:\a\b"
> (change-dir "h:")
true
> (real-path)
"H:\"
> (change-dir "c:")
true
> (real-path)
"c:\a\b"

In the last step, I was trying to change the dir to c:, but it remains in c:ab
#2
Whither newLISP? / suggestion
November 08, 2009, 11:19:04 PM
On Windows, can we make (directory? "c:\") return true? Currently it returns nil and (directory? "c:\\") returns true.
#3
in newlisp, is it possible to copy files from/to a windows network place, e.g. \computernameshared_folder
#4
newLISP and the O.S. /
September 28, 2009, 06:44:52 AM
I am using 10.1.5.

(directory? "c:\") => nil

(directory? "c:\\") =>true
#5
newLISP and the O.S. / A suggestion
September 28, 2009, 05:38:45 AM
I just noticed that when I do (directory? "c:"), I got nil. Should it return true instead? The drive can be considered as the "root" directory on that drive.
#6
Whither newLISP? / Some thoughts on lisp's syntax
September 06, 2009, 10:15:17 AM
It seems that quite a lot of people(including me) do not like the parentheses of lisp, because it is unnatural, hard to read or whatever else, but currently do we have a better replacement for it? Have a look at the syntax of C-family languages or PL/SQL, they are all trying to be natural, in the end, they have to use different syntactical rules for different things.Personally, I found this sucks! It is too complicated. In addition, if you make any tiny mistake, the complier or interpreter will not accept your code at all! This is why I believe that any kind of "natural" syntaxes suck for programming languages.

Natural languages are good for communications between human beings because we are intelligent, we can correct small mistakes, but computers can not do it and natural languages are so complicated that it is very very easy to make mistakes, programming languages that try to be natural just increase unnecessary complexity. So unless some one finds some other parenthesis-less syntax that still preserve the same simplicity of lisp's syntax, we should not touch it.
#7
newLISP and the O.S. /
September 01, 2009, 09:45:50 PM
Exactly! The file I was trying to copy and delete is of 0 length! Thank you.
#8
Hi, today I just tried to copy and delete files from a windows mapped drive with copy-file and delete-file, but I got I/O error in copy-file and the delete-file just return nil without any effect. Does anyone have the same problem here? Is it a bug?