newLISP Fan Club

Forum => newLISP in the real world => Topic started by: eddier on June 03, 2004, 07:12:36 AM

Title: getenv and putenv
Post by: eddier on June 03, 2004, 07:12:36 AM
Lutz,



I noticed you replaced read-process and write-process with exec.



How about replacing getenv and putenv with env?



Eddie
Title:
Post by: Lutz on June 03, 2004, 03:40:17 PM
you mean:



(env str str) = (putenv str str)

(env str) = (getenv str)



and how about ?



(env) = (environ)



not a bad idea, kind of a logical progression, I would introduce env and leave the  old getenv/putenv/environ until several releases after? What do other usrers think?



Lutz
Title:
Post by: nigelbrown on June 03, 2004, 07:32:20 PM
sounds logical and consistent
Title:
Post by: eddier on June 04, 2004, 06:20:34 AM
Yes, that's what I mean. Oh yea, I keep thinking to ask but never do



Is println  just a pretty print version of write-line? If so, I should be using write-line instead of println for cgi operations. How about a write function like print except no pretty printing?



Eddie
Title:
Post by: Lutz on June 04, 2004, 06:41:32 AM
print and println only to pretty-printing when printing lisp espressions.  When printing strings no pretty prining is performed. write-line only prints struings and can only take one argument and also can take a file handle.



So there is no reason to prefer write-line over println when printing strings.



Lutz
Title:
Post by: eddier on June 04, 2004, 07:05:29 AM
Thanks Lutz.



I never have used write-line. Does it really have a purpose given println?



Also, I am e-mailing the new version of ecal.cgi with the bell.png image. Overlook the cookie info at the bottom of the applet when setting a reminder. I am going to use that to find out what is up with the time-zone function. I'm on vacation next week, so I probably wont have a time-zone fix for two weeks.



Eddie
Title:
Post by: Lutz on June 04, 2004, 07:50:23 AM
write-line can take a filehandle, it belongs to the write-char, write-buffer family.



Lutz