Search found 38 matches

by starseed
Sun Aug 27, 2006 9:37 pm
Forum: Anything else we might add?
Topic: repl help system
Replies: 11
Views: 8190

Re: a modification

Actually, all displayed behaviour has been by design ... maybe based on just being lazy ;-)

I'll have a look into your changes - and then it would be nice to integrate both html-help, and online quickhelp.

Regards,

Ingo ;-)
by starseed
Tue Aug 22, 2006 7:31 pm
Forum: newLISP newS
Topic: BUG: Crash with replace-assoc
Replies: 3
Views: 3464

Yes,

that's what I thought ... whatever I did wrong, newLISP shouldn't crash ;-)

Mind you, I'm already very proficient in bugging newlisp programs, _debugging_ is a skill I still have to develop.

Thank you!


Ingo
by starseed
Mon Aug 21, 2006 5:23 pm
Forum: newLISP newS
Topic: mystery string bug ...
Replies: 1
Views: 2435

mystery string bug ...

I don't understand, what happens here ... Me being lazy I want a fast way to load a file ni the console, so I created the following, which tries to load a file by: - converting the given file-name to a string and appending .lsp - just converting to a string (define-macro (do myfile) "tries to load t...
by starseed
Mon Aug 21, 2006 5:16 pm
Forum: newLISP newS
Topic: BUG: Crash with replace-assoc
Replies: 3
Views: 3464

BUG: Crash with replace-assoc

I found a crash newLISP v.8.9.6 on Win32 MinGW. > (set 'test '((name "ingo")(last "Hohmann"))) ((name "ingo") (last "Hohmann")) > (push '(name1 "Whalesong") test) (name1 "Whalesong") > (replace-assoc 'name1 test (name1 "Starseed")) invalid function in function replace-assoc : (name1 "Starseed") (CRA...
by starseed
Mon Aug 21, 2006 5:12 pm
Forum: newLISP newS
Topic: [BUG] save non valid symbols (context)
Replies: 7
Views: 5354

Thats something I'm just now thinking about ... I like to have named elements in datasets. Do have a better idea than the following? (set 'persons '( ((name "Ingo") (last "Hohmann") (birth-place {Planet Earth})) ((name "ET") (birth-place "Sirius III")))) (filter (lambda (v) (= "Ingo" (lookup 'name v...
by starseed
Mon Aug 21, 2006 3:02 pm
Forum: newLISP newS
Topic: [BUG] save non valid symbols (context)
Replies: 7
Views: 5354

Few would use non legal symbols to name a context/namespace, That's exactly why I used it ;-) I wanted to be sure to not clash with anything else. But it's not a big deal, I can safely use legal symbols. but illegal symbols may occur in dictionaries from life non-program texts and then the contsruc...
by starseed
Mon Aug 21, 2006 7:27 am
Forum: newLISP newS
Topic: [BUG] save non valid symbols (context)
Replies: 7
Views: 5354

Thanks,

I just wasn't sure, wether it's a known problem.


Ingo
by starseed
Sun Aug 20, 2006 9:21 pm
Forum: newLISP newS
Topic: [BUG] save non valid symbols (context)
Replies: 7
Views: 5354

[BUG] save non valid symbols (context)

Hi Lutz, I created some symbols using sym, with strings which are really far from being valid symbols. (context 'block) (set 'my-list nil) (set 'my-index nil) (define (block:block) (my-list my-index)) (define (block:new alist) (let ((new-block (MAIN:new MAIN:block (gensym 'MAIN)))) (new-block:init a...
by starseed
Sun Aug 20, 2006 8:23 pm
Forum: newLISP newS
Topic: Testing framework?
Replies: 1
Views: 2371

Testing framework?

Hi All,

does anyone have a testuing framework for newLISP? I remember that I've seen some code posted with a test= function ...



Thank you,

Ingo
by starseed
Fri Aug 18, 2006 2:33 pm
Forum: newLISP newS
Topic: bug: hardcoded path in newlisp-tk?
Replies: 3
Views: 3348

Thank you,

that worked.

It was the first time I had problems like this ... funny.
by starseed
Fri Aug 18, 2006 9:14 am
Forum: newLISP newS
Topic: bug: hardcoded path in newlisp-tk?
Replies: 3
Views: 3348

bug: hardcoded path in newlisp-tk?

Hi Lutz,

When I start newlisp-tk (newlisp 8.9.5), I get the following error:

Error sourcing /freewrap/newlisp-tk.tcl: couldn't execute "C:\Programme\newlisp\newlisp": no such file or directory

Which is quite OK, because it really doesn't exist, newlisp is
installed in E:\Tools\Newlisp
by starseed
Fri Aug 18, 2006 7:02 am
Forum: newLISP newS
Topic: [bug] lambda? scanning error ...
Replies: 4
Views: 3846

Ahh, thank you.
by starseed
Thu Aug 17, 2006 3:37 pm
Forum: newLISP newS
Topic: [bug] lambda? scanning error ...
Replies: 4
Views: 3846

[bug] lambda? scanning error ...

Hi Lutz, I have defined the following func: (define (type val) (if (float? val) 'float (integer? val) 'integer (lambda? val) 'lambda (list? val) 'list (macro? val) 'macro (string? val) 'string (symbol? val) 'symbol (atom? val) 'atom)) in a file called tools.lsp, now when I load this file, I get an e...
by starseed
Thu Aug 17, 2006 2:11 pm
Forum: newLISP in the real world
Topic: context name newlisp-tk
Replies: 7
Views: 4086

Yes, this bug has been corrected in 8.9.4
by starseed
Thu Aug 17, 2006 2:10 pm
Forum: newLISP newS
Topic: development version newLISP 8.9.4
Replies: 10
Views: 7133

Lutz wrote:to Norman: yes, UUIDs are very handy in many situations, file-ids, session-ids and zillions of other stuff. I am trying to get more DCE stuff into place, perhaps the next is an LDAP module?
And my nice gensym can be replaced by

Code: Select all

(sym (uuid))
by starseed
Mon Aug 14, 2006 3:17 pm
Forum: newLISP in the real world
Topic: newlisp calling a library function crashes
Replies: 2
Views: 2302

Thanks Lutz,

I started to assume something like this, and seems you were right. My first test worked!


Kind regards,

Ingo
by starseed
Mon Aug 14, 2006 2:24 pm
Forum: newLISP in the real world
Topic: newlisp calling a library function crashes
Replies: 2
Views: 2302

newlisp calling a library function crashes

Hi, I'm having a problem with a library call. I'm still trying to get newLisp to use IUP(1), and now I have to call a function with a variable number of arguments, which expects NULL as the last. And whenever I call the function, newLisp crashes. (context 'iup) (set 'iup-imports '( (iup.dll IupOpen ...
by starseed
Wed Aug 09, 2006 8:06 am
Forum: newLISP newS
Topic: This is ridiculous
Replies: 25
Views: 21336

... context use a global variable name ... There are always voices who want to build all paradigms known to CS into newLISP, ... Believe me, I am not proposing this. I like it small and sweet. ;-) In the big picture of things this is the right thing to do: it sets limitations but also makes the lan...
by starseed
Tue Aug 08, 2006 9:08 pm
Forum: newLISP newS
Topic: This is ridiculous
Replies: 25
Views: 21336

He has one point, though.

That context use a global variable name strikes me as suboptimal, too.
Especially as they are promoted as a way to pass large structures by reference, and to be used to implement objects.
by starseed
Tue Aug 08, 2006 8:54 pm
Forum: newLISP newS
Topic: bug: newlisp-tk: new context
Replies: 1
Views: 2352

bug: newlisp-tk: new context

Hi, am I the only one who gets the following error? symbol is protected in function silent : sym called from user defined function SYS:make-context-verify I get it when I try to create a new context through newlisp-tk (new context button). P.S.: I get it with newlisp-tk as shipped with 8.9.0 and 8.9...
by starseed
Fri Aug 04, 2006 9:49 am
Forum: Anything else we might add?
Topic: Returning "nothing at all" or a
Replies: 4
Views: 2400

Hi Peter, hmm, silent should work ... it looks a little funny, maybe I need a better name ... (def (.) "Just to end interactive funcs, put it at the last place in your func" (silent (print "\n> "))) (def (src "Prints the source of a lambda expression" of-func "function, to get source of") (println (...
by starseed
Thu Aug 03, 2006 9:19 pm
Forum: Anything else we might add?
Topic: Returning "nothing at all" or a
Replies: 4
Views: 2400

Returning "nothing at all" or a

I like to play at the console. One thing I noticed at the newLisp console, is that prints and returns frequently run into each other, e.g. > (define (test a) (print a)) (lambda (a) (print a)) > (test 5) 55 Why the hell is it printing 55??? Well, I found out quite fast, but with a little more complic...
by starseed
Thu Aug 03, 2006 8:54 pm
Forum: Anything else we might add?
Topic: repl help system
Replies: 11
Views: 8190

1) You're welcome! ;-) 2) OK, I cheated a little bit. I've done some programming in Rebol, which has lispy roots. But it does away with all these parens - which now are my main problem ... 3) See above ... I sometimes need the parens on their lines, to be able to read it. But maybe I'll learn with t...
by starseed
Thu Aug 03, 2006 6:40 pm
Forum: Anything else we might add?
Topic: repl help system
Replies: 11
Views: 8190

repl help system

I like to have an interpreter open, to check code snippets. Now, if the interpreter is already there, it would be nice to have an online help system ... here it is ;-) (define-macro (def) "Creates a lambda expression, while checking for doc-strings" (let ((__def_func (args)) (__def_help "")) (dolist...
by starseed
Thu Aug 03, 2006 6:29 pm
Forum: Anything else we might add?
Topic: gensym and hygienic macro
Replies: 0
Views: 1812

gensym and hygienic macro

OK, while I was thinking, and learning newLisp, and tried to implement a gensym a gensym. It does not technically give you an unlimited number of different different symbols, but it should be enough for most real world problems. (context 'gensym) (set 'no 0) (define (gensym:gensym) "creates lots of ...