Search found 24 matches

by lwix
Thu Nov 18, 2004 12:29 am
Forum: newLISP in the real world
Topic: Accessing Strings vs ints in a structure
Replies: 2
Views: 3037

Yep, makes perfect sense. Thanks.
by lwix
Thu Nov 18, 2004 12:27 am
Forum: newLISP newS
Topic: RFC open on newLISP documentation
Replies: 280
Views: 169305

bugger - one more

2996c2996
< version 8.2.7 espressions in exp-1 ... where not evaluated.
Apart from the slip indicated in the diff, 'where' should be 'were'.
Sorry.
by lwix
Thu Nov 18, 2004 12:14 am
Forum: newLISP newS
Topic: RFC open on newLISP documentation
Replies: 280
Views: 169305

Lutz wrote:... I need some kind of spelling support in VI, which is my HTML editor, any suggestions?Lutz
Maybe VI macros that can use [ai]spell on the current buffer? Or a macro that writes out a tmp file and runs [ai]spell on that and hooks back the result?
by lwix
Thu Nov 18, 2004 12:06 am
Forum: newLISP newS
Topic: RFC open on newLISP documentation
Replies: 280
Views: 169305

Only a few this time.

http://homepages.paradise.net.nz/~j_gauss/wix/7diff.txt

some slips may be hard to pick up: lib|d|emo vs lib|b|emo
and semaphore vs sempahore because lines are the same length.
by lwix
Wed Nov 17, 2004 10:33 pm
Forum: newLISP newS
Topic: RFC open on newLISP documentation
Replies: 280
Views: 169305

A quick look at the latest manual (8.2.7) indicates that you've fixed the little typos. Thank you very much -- now I can read without tripping ;-) But the first typo was hard to pick up: nuevatAc used instead of nuevatEc. It occurs as a hypertext link in the last line of the paragraph that comes jus...
by lwix
Mon Nov 15, 2004 1:27 am
Forum: newLISP in the real world
Topic: Accessing Strings vs ints in a structure
Replies: 2
Views: 3037

Accessing Strings vs ints in a structure

In the manual we have this example: typedef struct mystruc { int number; char * ptr; } MYSTRUC; MYSTRUC * foo3(char * ptr, int num ) { MYSTRUC * astruc; astruc = malloc(sizeof(MYSTRUC)); astruc->ptr = malloc(strlen(ptr) + 1); strcpy(astruc->ptr, ptr); astruc->number = num; return(astruc); } > (set '...
by lwix
Sun Nov 14, 2004 9:08 pm
Forum: newLISP in the real world
Topic: html
Replies: 4
Views: 3985

+1 (i.e. "yes" to having them added)
by lwix
Thu Nov 11, 2004 10:19 pm
Forum: Anything else we might add?
Topic: Making [text][/text] more convenient
Replies: 12
Views: 8562

Quite true :-)
Thank you.
by lwix
Thu Nov 11, 2004 11:15 am
Forum: Anything else we might add?
Topic: Making [text][/text] more convenient
Replies: 12
Views: 8562

... It could be an option though to have the choise in a "define/contstant/set" to have a user defined "Comment" like (where it must be included in every source file at the beginning, otherwise it wont work) -->> (setq comment '( "[text]" "[/text"] ) (setq comment '( "{" "}" ) (setq comment '( "[te...
by lwix
Thu Nov 11, 2004 3:48 am
Forum: newLISP in the real world
Topic: newlisp project at savannah?
Replies: 4
Views: 3983

well, there you go! I completely missed the fact that newlisp had a sourceforge page.
but no mailing list ;-)
by lwix
Thu Nov 11, 2004 1:57 am
Forum: Anything else we might add?
Topic: Making [text][/text] more convenient
Replies: 12
Views: 8562

So basically the [text], [/text] tags would always be on a line by itself. I am not sure ... I have to think about this a little bit longer... Lutz Not at all. I shall be more precise: the parser would ignore the first newline only if the newline exists . No current code will be affected except tho...
by lwix
Wed Nov 10, 2004 2:37 am
Forum: newLISP in the real world
Topic: newlisp project at savannah?
Replies: 4
Views: 3983

May I share my thoughts on this? (Bit cheeky for a new user - sorry) I think that the current system for source code control and distribution is perfect! We have no problems with any website being down or CVS being broken? Why complicate things? We don't have a mailing list though. The advantage of ...
by lwix
Wed Nov 10, 2004 2:19 am
Forum: Anything else we might add?
Topic: Making [text][/text] more convenient
Replies: 12
Views: 8562

Making [text][/text] more convenient

Hi Lutz, This is an rfc - a request for convenience ;-) Should the parser be made to ignore the first hard newline after [text]? This would make it easier to write and read boxed-quoted text in scripts. For example: here is how we currently write 2 indented paragraphs: [text]___words words words wor...
by lwix
Tue Nov 09, 2004 11:56 pm
Forum: newLISP in the real world
Topic: newLISP syntax highlighting for JOE (the editor)
Replies: 5
Views: 4252

Thanks newdep. I've added it to the one on the site, Also added 3 other words. http://homepages.paradise.net.nz/j_gauss/wix/newlisp.html There's another macro available as well - it does "autobrackets". Yeah, I had left [text][/text] as normal dunno why :-) ... I'm also going to make a suggestion fo...
by lwix
Mon Nov 08, 2004 5:19 am
Forum: newLISP newS
Topic: RFC open on newLISP documentation
Replies: 280
Views: 169305

Hi Lutz , I got a PM from you to say that the mail might have been dropped. So here is a link to the tarball. http://homepages.paradise.net.nz/~j_gauss/wix/lucas.tgz ** since removed -- Lutz now has it ** This was just a first pass over the docs yielding about 80 possible errors/typos. Reject or acc...
by lwix
Sun Nov 07, 2004 3:15 am
Forum: newLISP newS
Topic: RFC open on newLISP documentation
Replies: 280
Views: 169305

Corrections in spelling for the latest manual

Hi Lutz,

I've sent you an email with an attachment. There was a fair bit of context which enlarged the file thereby making it too large to post here.

Lucas.
by lwix
Sat Nov 06, 2004 1:02 pm
Forum: newLISP in the real world
Topic: newLISP syntax highlighting for JOE (the editor)
Replies: 5
Views: 4252

newLISP syntax highlighting for JOE (the editor)

For those who like using JOE, I've prepared a newlisp.jsf for syntax highlighting available from: http://homepages.paradise.net.nz/j_gauss/wix/newlisp.html Change the colors to suit. You will need to make changes to your .joerc file as described. It blinks annoyingly if you use deprecated functions....
by lwix
Fri Nov 05, 2004 10:27 pm
Forum: newLISP newS
Topic: development release newLISP v.8.2.4
Replies: 7
Views: 5977

Re: development release newLISP v.8.2.4

Lutz wrote: - the function 'push' is now optimized to handle pushing at the end of a list with index -1, as efficient as pushing in front of a list...
Great! Now we can implement efficient queues easily.

Lucas
by lwix
Fri Nov 05, 2004 12:41 pm
Forum: Anything else we might add?
Topic: Does an assignment result in a copy?
Replies: 7
Views: 5353

Another way to call-by-"reference" (macros are probably the better way to do it): > ;;call-by-"reference" without using macros > ;;example list > (set 'a '(1 2 3)) (1 2 3) > ;;set "pointer" to 'a > (set 'p 'a) a > ;;"dereference" pointer > (eval p) (1 2 3) > ;;define function to demonstrate call-by-...
by lwix
Wed Nov 03, 2004 6:06 pm
Forum: Anything else we might add?
Topic: Does an assignment result in a copy?
Replies: 7
Views: 5353

Hmm, then I was right to ask the question.

Conclusion: no problem! I will just use meaningful function names and indentation!

Thank you for your attention.

Lucas.
by lwix
Wed Nov 03, 2004 8:36 am
Forum: Anything else we might add?
Topic: Does an assignment result in a copy?
Replies: 7
Views: 5353

I checked with (sys-info) and my assumption seems to be correct. But I'll wait for Lutz to confirm :-)

Lucas
by lwix
Wed Nov 03, 2004 8:21 am
Forum: Anything else we might add?
Topic: Does an assignment result in a copy?
Replies: 7
Views: 5353

Thank you Lutz for the taking the time. I mostly understand newlisp's memory management and prefer it to oldlisp's. :-) I understand that nice new fresh lists are returned from functions. My question was not clear enough. It was a silly question (I hope). Please allow me to try again. Sometimes when...
by lwix
Tue Nov 02, 2004 10:22 pm
Forum: Anything else we might add?
Topic: Does an assignment result in a copy?
Replies: 7
Views: 5353

Does an assignment result in a copy?

Hello, in a large function, to decrease the number of nested function calls, I may wish to temporarily set the list (I'm working on) to a symbol. And then call the functions using the symbol as a reference and always resetting the sybol. For e.g. Instead of (doz (doy (dox somelist))) I could go (beg...
by lwix
Tue Oct 26, 2004 3:52 am
Forum: Anything else we might add?
Topic: mod_newlisp?
Replies: 14
Views: 10224

Hi I'm new -- thank you for new newLisp. I like the fact that newLisp is small and efficient. I am a student and web developer soon to be undertaking web-development projects for non-profit organisations. These organisations have only low-powered computers with little memory. In reference to mod_new...