About "Code Patterns in newLISP"

Started by johu, April 09, 2011, 01:36:06 AM

Previous topic - Next topic

johu

Hello, Lutz.



I have translated "Code Patterns in newLISP" to Japanese and I'm reviewing it.

Now I have some suggestion.



Evaluating remotely

The parameter p is nil when no result was received during the last 100 micro seconds,

The parameter p is nil when no result was received during the last 1000 micro seconds,



maybe.





CGI processing in HTTP mode

extract or set cookies amd other useful routines

extract or set cookies and other useful routines





Unevenly aligned structures

    return(&data);

    return(&data);



There are two places.



Thanks,

Lutz

#1
Thanks Johu, corrections are online here:



http://www.newlisp.org/downloads/CodePatterns.html">http://www.newlisp.org/downloads/CodePatterns.html





Ps: 1000 milli seconds

johu

#2
Thank you, Lutz.

And I found some points to be corrected when reviewing.



  <li>'push' and 'pop'</li>

  <li>Accessing lists</li>

   ↓

  <li>'push' and 'pop'</li>

  <li>'extend'</li>

  <li>Accessing lists</li>





Using 'net-peek'

'net-peek returns the number of characters pending to read.

(delete a apostrophe ahead of net-peek)

net-peek returns the number of characters pending to read.





Nested associations

See the users manual chapter "17. Object Oriented Programming in newLISP" for details.

See the users manual chapter "18. Functional-object oriented programming" for details.



maybe





Transferring files

The <tt>-read-file</tt> function returns the contents received.

(delete a hyphen ahead of read-file)

The <tt>read-file</tt> function returns the contents received.



Regards,

Lutz

#3
Thanks Johu, updates here:



http://www.newlisp.org/downloads/CodePatterns.html">http://www.newlisp.org/downloads/CodePatterns.html

johu

#4
Thank you, Lutz.



I finished to translate "Code Patterns in newLISP" into Japanese.

http://cid-23a9a25e1aec3626.office.live.com/self.aspx/.Public/CodePatterns-20110411.zip">//http://cid-23a9a25e1aec3626.office.live.com/self.aspx/.Public/CodePatterns-20110411.zip



And I'm sorry,, I forgot to show  a point to be corrected.



Pre-processing the request

newlisp httpd-conf.lsp -http -d 80 -w /home/www &>amp;



newlisp httpd-conf.lsp -http -d 80 -w /home/www &





Regards,

Lutz

#5
Thanks Joh, online now here:



http://www.newlisp.org/CodePatterns-jp.html">http://www.newlisp.org/CodePatterns-jp.html



and also linked from the documentation page.

johu

#6
Thanks Lutz for the online.