Search found 21 matches

by HJH
Mon May 22, 2006 8:50 am
Forum: Anything else we might add?
Topic: Want a replacemet script
Replies: 4
Views: 4261

Re: Want a replacemet script

aron wrote:
All ideeas are wery appreciateed
Well, perhaps
http://www.newlisp.org/DesignPatterns.h ... processing

is a start.

--HJH
by HJH
Tue Oct 18, 2005 7:35 pm
Forum: Anything else we might add?
Topic: How to implement a dictionary?
Replies: 3
Views: 4673

Lutz,

Thank you for your explanations which I could use readily. A dictionary is a separate context where the symbols correspond to the keys of the dictionary which are bound to values. The way how to construct an access symbol was unfamiliar to me but now I understand how it works.

--HJH
by HJH
Mon Oct 17, 2005 1:44 pm
Forum: Anything else we might add?
Topic: How to implement a dictionary?
Replies: 3
Views: 4673

Well in the mean time I found the answer in the manual

I can use the following three predicates:
http://www.newlisp.org/downloads/newlis ... html#assoc

Code: Select all

replace-assoc
and

Code: Select all

lookup
.

So the only question remaining is how to remove an existing entry.

--HJH
by HJH
Mon Oct 17, 2005 1:36 pm
Forum: Anything else we might add?
Topic: JSON parser
Replies: 3
Views: 4304

A JSON parser is a contribution which is very welcome.
Did anybody else use and test the code?

Is it as well possible to write JSON files?

--HJH
by HJH
Mon Oct 17, 2005 1:24 pm
Forum: Anything else we might add?
Topic: How to implement a dictionary?
Replies: 3
Views: 4673

How to implement a dictionary?

Hello I have been reading the passage http://www.newlisp.org/DesignPatterns.html#text_processing of the newlisp design patterns document. For me the paragraph about text processing is too terse and I do not really understand how to implement a dictionary. For example I would like to implement the ex...
by HJH
Tue Sep 20, 2005 2:13 pm
Forum: Anything else we might add?
Topic: interpreted lisps
Replies: 4
Views: 7200

Nice article... I've tinkered with Pico Lisp some time ago, and it seemd a very pragmatic and nice solution... In a way, it's like newLisp, in others, it's not... Where do you see the similarities to newLisp? Where do they differ? The article shows an intersting statistic where the interpreted pico...
by HJH
Thu Jun 16, 2005 5:44 pm
Forum: Anything else we might add?
Topic: Passing paramters by value
Replies: 8
Views: 9262

Thank you for this links to the design patterns page. It is very useful. I was not aware of it. A suggestion for the future: A section of a side by side comparison of some of the more prominent patterns with COMMON LISP would be useful. I am currently learning COMMON LISP (CLISP and ACL) as well so ...
by HJH
Wed Jun 15, 2005 1:23 pm
Forum: newLISP in the real world
Topic: How do I set an icon when using 'newlisp link.lsp'
Replies: 11
Views: 10571

Yes, thank you all for your answers. In fact the dialog is produced, but it does not show up. The only thing that something happens is a new entry in the taskbar where people do not normally check regularily for new things. So from a usability point of view it is useless. But let's not use more time...
by HJH
Tue Jun 14, 2005 9:17 pm
Forum: newLISP in the real world
Topic: How do I set an icon when using 'newlisp link.lsp'
Replies: 11
Views: 10571

Why does

Code: Select all

(import "user32.dll" "MessageBoxA") 

(MessageBoxA 0 "Content" "Caption" 0) 
not work in newlisp.exe (210kB exe)?

--HJH
by HJH
Tue Jun 14, 2005 8:24 pm
Forum: Anything else we might add?
Topic: print println write-line and ?
Replies: 1
Views: 3075

print println write-line and ?

Hi

there is
print println write-line

but how do I write a string to a file without sending out a standard line termination character?

--HJH
by HJH
Mon Jun 13, 2005 3:28 pm
Forum: newLISP in the real world
Topic: How do I set an icon when using 'newlisp link.lsp'
Replies: 11
Views: 10571

It works fine in the 1.4MB newlisp-tk.exe but not in the 210kB newlisp.exe

--HJH
by HJH
Mon Jun 13, 2005 8:49 am
Forum: newLISP in the real world
Topic: How do I set an icon when using 'newlisp link.lsp'
Replies: 11
Views: 10571

...It still works as before with link.lsp and show the icon in the command-window and the task-bar. So exactly what you want. Yes, indeed. I use this approach now. I just do a backup copy of the original 'newlisp.exe' to have it handy for the next time. Thank you for this recommendation! So we can ...
by HJH
Sun Jun 12, 2005 7:02 pm
Forum: newLISP in the real world
Topic: How do I set an icon when using 'newlisp link.lsp'
Replies: 11
Views: 10571

How do I set an icon when using 'newlisp link.lsp'

Hello I successfully used on a command prompt newlisp link.lisp (see http://www.newlisp.org/downloads/newlisp_manual.html#linking to create a 211kB-non-GUI-MSWindows executable with a newLisp script I wrote. It is fantastic how easy it is, to create small handy stand-alone Windows apps doing a parti...
by HJH
Mon Jun 06, 2005 3:18 pm
Forum: Anything else we might add?
Topic: Passing paramters by value
Replies: 8
Views: 9262

Thank you for the answer. In fact for me the second version with passing the large data structure (the data base list) as a symbol is easier to understand.

--HJH
by HJH
Mon Jun 06, 2005 9:50 am
Forum: Anything else we might add?
Topic: Passing paramters by value
Replies: 8
Views: 9262

Passing paramters by value

Hi I have a general question of understanding after having read http://www.newlisp.org/MemoryManagement.html It seems that parameters are always passed by value to the functions. This means that a parameter value is copied, i.e. duplicated, when calling a function. This seems to be the case even for...
by HJH
Thu Jun 02, 2005 5:25 am
Forum: newLISP Graphics & Sound
Topic: Geometry Library For NewLISP
Replies: 4
Views: 7690

Great idea! But why not consider hooking up one of those great 2D / 3D libraries out there?

--HJH
by HJH
Wed Jun 01, 2005 3:23 pm
Forum: Anything else we might add?
Topic: Inverse function of string
Replies: 1
Views: 3046

Inverse function of string

Hi what is the inverse function of string . (string 'hello) gives back "hello" . If I have a string how do I get a corresponding atom assuming the atom has no spaces. A note (or link) in the documentation under the entry string would be helpful. A similar question: how do I test strings for equality...
by HJH
Tue May 31, 2005 4:33 pm
Forum: Anything else we might add?
Topic: How do I read a text file line by line &put it into a li
Replies: 3
Views: 4554

(setq list-of-lines (parse (read-file "myfile.txt") "\r\n")) Thank you Sammo. This is very compact and readable at the same time. It works fine and what is exciting: It reads UTF8 characters right out of the box (well, I had to install the exe). For the number of files I am dealing with this soluti...
by HJH
Tue May 31, 2005 2:47 pm
Forum: Anything else we might add?
Topic: How do I read a text file line by line &put it into a li
Replies: 3
Views: 4554

How do I read a text file line by line &put it into a li

Hi as a relative newcomer to Lisp and especially newLisp I would like to ask how a function in good style looks like which does the following: It reads in a text file line by line and gives back a list of all this lines. Call (read-textfile-into-list "myFile.txt") There is a partial answer in the do...
by HJH
Tue May 31, 2005 2:38 pm
Forum: newLISP and the O.S.
Topic: Cross window tests with newLISP
Replies: 2
Views: 4430

Re: Cross window tests with newLISP

HPW wrote:I am running a cross windows test to get the picture of supported win-platforms:

WIN XP OK
WIN 2K OK
NT4 Problems with interface dll. Not clear yet.
WS2HELP.DLL on WIN95.
Which interface dll? Are there further results?

HJH
by HJH
Tue May 31, 2005 2:35 pm
Forum: newLISP in the real world
Topic: List of files matching a pattern
Replies: 1
Views: 2776

List of files matching a pattern

Hi I found a function which shows the current working directory on http://www.newlisp.org/index.cgi?page=Code_Snippets which is very handy Is there a function which is similar to the Tcl glob function? http://tmml.sourceforge.net/doc/tcl/glob.html I would like to say (glob "*.txt") and get back a li...