I think there is no need to 'funcall' in newLisp, because variable name space and function name space are not separated as in Common Lisp, and maybe for other reasons, but I may be mistaken...
As for 'getdef', I can't give an answer because i don't know what is the use of this function in CL. Sorry !
Search found 156 matches
- Fri Oct 26, 2018 4:33 pm
- Forum: newLISP in the real world
- Topic: FUNCALL and GETDEF
- Replies: 3
- Views: 3627
- Sun Aug 12, 2018 11:34 am
- Forum: newLISP in the real world
- Topic: Any new releases, planned future
- Replies: 5
- Views: 5670
Re: Any new releases, planned future
Hi All, I'm curious if any new releases are on the horizon, and if there are future plans for newlisp in general. Love the language and programming in newlisp, I only wish it were a more general purpose platform / language, but I know it's not in the cards. To my knowledge, I don't know any lisp-li...
- Sun Feb 25, 2018 5:51 pm
- Forum: newLISP in the real world
- Topic: Error in newLISP-GS
- Replies: 2
- Views: 3533
Re: Error in newLISP-GS
Me too ! When you described the phenomenon two days ago, I could reproduce it three times at least, but today not at all, strangely! PS : the same error reappears when I come back once more on the tab 'untitled.lsp' after having done the opposite operation (cut in 'untitled.lsp' and paste again in t...
- Thu Jan 19, 2017 10:20 am
- Forum: newLISP in the real world
- Topic: Why this forum's link not exists in newlisp's home page?
- Replies: 2
- Views: 3470
Re: Why this forum's link not exists in newlisp's home page?
It exists in the About-page in "20.Where do I file bug reports?" and in the Links-page in "Code collections and blogs" ... :)iNPRwANG wrote:Why this forum's link not exists in newlisp's home page?
- Tue Nov 29, 2016 10:01 am
- Forum: newLISP Graphics & Sound
- Topic: Tk (or other) GUI in newLisp (single executable)
- Replies: 11
- Views: 14709
Re: Tk (or other) GUI in newLisp (single executable)
Just to inform: on my linux, I usually use this little module (a lightly modified 'runtk') : ;;;; ;;;; Module 'tk' ;;;; newLISP + tk ('runtk' légèrement modifié - avril 2015) ;;;; ;;;; d'après runtk v 1.4 updated for 10.1 LM Nov 27th, 2009 ;;;; original version by Fanda: ;;;; http://www.intricatevis...
- Mon Oct 03, 2016 8:45 am
- Forum: newLISP Graphics & Sound
- Topic: Setting a checkbox programatically?
- Replies: 1
- Views: 5897
Re: Setting a checkbox programatically?
I'm not a regular user of newLISP-GS(*) but I think you might try gs:set-selected...
(*) I feel more comfortable with newLISP-Tk
(*) I feel more comfortable with newLISP-Tk
- Thu Jul 21, 2016 9:07 am
- Forum: Anything else we might add?
- Topic: primitive function empty? could not accept array
- Replies: 13
- Views: 12960
Re: primitive function empty? could not accept array
By default, we perceive an array as a special case of a list; so we expect it to act like a like in pretty much every way. Yes, but we can't effectively create an empty array : newLISP v.10.7.1 32-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h > (array 0) ERR: wrong dimensions in function ar...
- Fri Jun 24, 2016 4:24 pm
- Forum: newLISP in the real world
- Topic: Expand..
- Replies: 3
- Views: 4152
Re: Expand..
I never managed to get quite good enough at lisp and scheme, but with newlisp I should be vaguely useful for something.. :) I myself tried some Lisp(s) and many Scheme(s), and other scripting languages too, like Python, Perl or Ruby, but I'm definetly not able to manage with them, and at the end I ...
- Wed Jun 22, 2016 3:32 pm
- Forum: newLISP in the real world
- Topic: Expand..
- Replies: 3
- Views: 4152
Re: Expand..
Maybe I'm doing something wrong but I can't get expand to work.. (set 'x 2 'a '(d e)) ; from the examples (expand '(a x(b c x) 'x 'a)) For me this just returns the first list I typed. But I'm just using this on the console, not in any macros.. is this possible?? Many thanks. In the example, we have...
- Sat Apr 04, 2015 7:43 am
- Forum: newLISP in the real world
- Topic: Surprising behavior of dolist with break condition.
- Replies: 3
- Views: 2841
Re: Surprising behavior of dolist with break condition.
Here is another solution :
Code: Select all
(set 'foo '(1 5 10 20 100 105))
(last (ref-all 50 foo > true)) ;-> 20
- Tue May 20, 2014 3:44 pm
- Forum: newLISP in the real world
- Topic: Is there a List comprehensions macro?
- Replies: 3
- Views: 3311
Re: Is there a List comprehensions macro?
Here are some comparisons between Python and NewLisp that I made a long time ago: ;; List Comprehensions in PYTHON ;;>>> vec = [2, 4, 6] ;;>>> [3*x for x in vec] ;;[6, 12, 18] (set 'vec '(2 4 6)) (println (map (lambda (x) (* x 3)) vec)) ;-> (6 12 18) ;;>>> vec = [2, 4, 6] ;;>>> [[x, x**2] for x in v...
- Sun Oct 17, 2010 9:57 am
- Forum: Anything else we might add?
- Topic: new to newLISP
- Replies: 20
- Views: 11007
Re: new to newLISP
Hi everybody ! I'm a new newLISPer from France, and very happy to have found this pragmatic LISP . Hello Ormente, I'm a french NewLisper too ... a kind of ghost, in french " revenant " (= who is coming back), because I had given up programing a while ago. I'm not a pro but I like NewLisp even if I ...
- Mon Sep 28, 2009 2:50 pm
- Forum: newLISP and the O.S.
- Topic: A suggestion
- Replies: 4
- Views: 3628
For me on Win XP with NewLISP 10.1.5 : newLISP v.10.1.5 on Win32 IPv4, execute 'newlisp -h' for more info. > (directory? "c:\") ERR: string token too long : "c:\")\r\n" > (directory? "c:\\") nil > (directory? {c:\}) nil > (directory? {c:\\}) true > and : > (directory? "c:/") nil > (directory? "\") E...
- Sun Jul 26, 2009 10:40 am
- Forum: newLISP in the real world
- Topic: Curious behaviour using $
- Replies: 5
- Views: 2102
Curious indeed ! newLISP v.10.1.1 on Win32 IPv4, execute 'newlisp -h' for more info. > (context 'NEWCTX) NEWCTX NEWCTX> (set '$myvar 123) 123 NEWCTX> (context MAIN) MAIN > $myvar 123 > NEWCTX:$myvar nil > but ... newLISP v.10.1.1 on Win32 IPv4, execute 'newlisp -h' for more info. > (setq NEWCTX:$myv...
- Sat Jul 18, 2009 3:13 pm
- Forum: Anything else we might add?
- Topic: Fancy that phone with newLisp
- Replies: 4
- Views: 3592
- Mon Jul 13, 2009 8:55 am
- Forum: newLISP newS
- Topic: My wish list (some proposals for a future newLisp version)
- Replies: 11
- Views: 6538
I like Rebol very much but personally I don't like that proliferation of datatypes when we can easily create ours own (in NewLISP as well as in Rebol moreover) if need be. So we can "personalize" or adapt the type(s) to the actual situation without cluttering the core of the language ... I think man...
- Sun May 31, 2009 8:07 am
- Forum: Whither newLISP?
- Topic: begin vs. do
- Replies: 14
- Views: 7642
I think do is ambiguous. In some languages like Lua, Euphoria it is used to begin a block but it probably evals the block too. In any rate one would think so. dotimes and dolist (in NewLISP) gives me the same impression. I think that begin is more expressive even if we don't find the correlated end ...
- Sun May 31, 2009 7:47 am
- Forum: newLISP newS
- Topic: Please explain me how this code works!
- Replies: 6
- Views: 4597
I like map usage for multiple assignment! Me too ... With (map set ...) you can also swap easily and neatly newLISP v.10.0.6 on Win32 IPv4, execute 'newlisp -h' for more info. > (map set '(a b c d e f) '(1 2 3 4 5 6)) (1 2 3 4 5 6) > (map set '(a b c d e f) (list b c a e f d)) (2 3 1 5 6 4) > as in...
- Wed Mar 11, 2009 9:46 am
- Forum: newLISP Graphics & Sound
- Topic: (fwd)potential bug in REPL in newLISP-GS in newLISP v.10.0.1
- Replies: 15
- Views: 11436
Re: (fwd)potential bug in REPL in newLISP-GS in newLISP v.10
Apparently, carriage returns typed within the REPL in newLISP-GS are not being processed properly; viz. : In the newLISP command prompt REPL, outside the IDE: newLISP v.10.0.1 on Win32 IPv4, execute 'newlisp -h' for more info. > [cmd] 1 [/cmd] 1 > In the newLISP-GS REPL, inside the IDE: > [cmd] 1 [...
- Wed Mar 11, 2009 9:09 am
- Forum: newLISP Graphics & Sound
- Topic: (fwd)potential bug in REPL in newLISP-GS in newLISP v.10.0.1
- Replies: 15
- Views: 11436
- Tue Feb 10, 2009 9:26 am
- Forum: newLISP newS
- Topic: dup
- Replies: 2
- Views: 2499
Try this way instead:
;o)
Code: Select all
> (array 3 3 '(0))
((0 0 0) (0 0 0) (0 0 0))
- Sat Feb 07, 2009 7:55 pm
- Forum: newLISP newS
- Topic: dup
- Replies: 2
- Views: 2499
Maybe you can do also: (dup (series 0 0 3) 3) ;-> ((0 0 0) (0 0 0) (0 0 0)) series syntax: ( series num-start num-factor num-count ) In the first syntax, series creates a geometric sequence with num-count elements starting with the element in num-start . Each subsequent element is multiplied by num-...
- Wed Jan 21, 2009 6:46 pm
- Forum: newLISP and the O.S.
- Topic: directory? vs. file? on WIN32
- Replies: 4
- Views: 4002
Why have I got these results on my computer ? newLISP v.10.0.1 on Win32 IPv4, execute 'newlisp -h' for more info. > (set 'test-dir1 "C:/Program Files/programming") "C:/Program Files/programming" > (set 'test-dir2 "C:/Program Files/programming/") "C:/Program Files/programming/" > (directory? test-dir...
- Thu Jan 08, 2009 3:03 pm
- Forum: newLISP newS
- Topic: release newLISP version 10.0
- Replies: 26
- Views: 13023
newLISP 10.0 Manual Functions with memory A default function can update the lexically isolated static variables contained inside its namespace: ;; a function with memory (define (Gen:Gen x) (if Gen:acc (inc Gen:acc x) ( set Gen:acc x))) (Gen 1) → 1 (Gen 1) → 2 (Gen 2) → 4 (Gen 3) → 7 gen:acc → 7 The...
- Thu Jan 08, 2009 2:36 pm
- Forum: newLISP newS
- Topic: Close NewLisp console window
- Replies: 12
- Views: 7853
However it seems not to work (neither does CMDOW besides) with a GTK based newlisp script.newBert wrote:Xytroxon, thanks for CHP !
It works fine and easily in a batch file.
:-)
RUN.EXE must be the best solution in this case.