Re: Cutting a circular list.

2008-10-14 Thread Henrik Sarvell
Better incomplete than nothing at all :) /Henrik -- UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Re: Cutting a circular list.

2008-10-14 Thread Eugene
From my experience, trying to come to grips with pioLisp, I would argue in favour of showing the simple example to explain the concept AND then showing the complex, safe example and explaining why it is more robust and suitable for production use. I agree that there's way too many cases, for o

Re: Cutting a circular list.

2008-10-14 Thread konrad Zielinski
I've been thinking about the issue of needing Transient symbols. On the whole I think it will be better to use transient symbols where necesary. My line of though is that using destructive operators is exactly where this is an issue. And that is what I'm trying to write about. I have to say I'm al

Re: Cutting a circular list.

2008-10-14 Thread konrad Zielinski
Thanks Alex, I had misgivings about using eval in my code, and a feeling that there must be a better way. The inability to add NIL is something I completely missed, though. True not somthing that you would ordinarily do at the prompt but quite likely deep inside application code. As to useing Tr

Re: Cutting a circular list.

2008-10-14 Thread Alexander Burger
Hi Konrad, > I decided to re-implemtn the fifo function using these primitives. Good idea! This will give a lot of useful and practical examples. > (de my-fifo (Fifo Item) > (let RealFifo (eval Fifo) > (if Item > (if RealFifo # Adding to a Fifo > (let New

Re: Cutting a circular list.

2008-10-14 Thread konrad Zielinski
Hi All, OK here's an example of using con and set. which I'm planning to put up on the wiki. I decided to re-implemtn the fifo function using these primitives. Before I write up an article anyone see any room for improvment. I plan to mention altarnative ways of doing things Such as using circ fo

Re: Cutting a circular list.

2008-10-13 Thread Tomas Hlavaty
Hi Konrad, > basically tell the system . walk through all your pages generate the > HTML and save to a file. you can get something like that with wget program. The result is not great though for the purpose. > This would need special link handling and some file naming rules. > Obviously forms a

Re: Cutting a circular list.

2008-10-13 Thread konrad Zielinski
Hi Thomas, Well the current mode of operation is to generate html pages on demand. What about pre-generation. If I recall correctly that is something which the Apache Cocoon framework supports. basically tell the system . walk through all your pages generate the HTML and save to a file. This woul

Re: Cutting a circular list.

2008-10-13 Thread Tomas Hlavaty
Hi Konrad, > The one nice thing about having core documetnation, which is local > to my system is that I can access it when I'm offline, which is most > of the time. > > I get the impression that some people stay online constantly. Here > in Australia however internet connections are comparable ex

Re: Cutting a circular list.

2008-10-13 Thread konrad Zielinski
2008/10/13 Tomas Hlavaty <[EMAIL PROTECTED]>: > Hi Konrad, > Well thats two improvements to the documentation. >>> >>> Perhaps a perfect candidate for the Wiki? > >> Hmm. >> >> var - Variable: Either a symbol or a cell >> >> (set 'var 'any ..) -> any >> Stores new values any in the var arg

Re: Cutting a circular list.

2008-10-13 Thread Tomas Hlavaty
Hi Konrad, >>> Well thats two improvements to the documentation. >> >> Perhaps a perfect candidate for the Wiki? > Hmm. > > var - Variable: Either a symbol or a cell > > (set 'var 'any ..) -> any > Stores new values any in the var arguments. See also setq, val and def. > > Even taken in conce

Re: Cutting a circular list.

2008-10-12 Thread Alexander Burger
Hi Konrad, > I would say that there are some functions where additional verbosity > is warranted. the function for assigning values is one such place. > Especially when the acutal behaviour may not be what people with Lisp > experience expect. > > While succinctness is good in documentation, it i

Re: Cutting a circular list.

2008-10-12 Thread konrad Zielinski
Hmm. var - Variable: Either a symbol or a cell (set 'var 'any ..) -> any Stores new values any in the var arguments. See also setq, val and def. Even taken in concert these two snippets don't actually explain what will happen if var is a cell. It may be obvious (if you already know) that if

Re: Cutting a circular list.

2008-10-11 Thread Alexander Burger
Hi Konrad, > Well thats two improvements to the documentation. Perhaps a perfect candidate for the Wiki? > The description of set says: > > Stores new values any in the var arguments. I suspect it should say > what you said above. Well, I wanted to avoid such a verbose description in the refe

Re: Cutting a circular list.

2008-10-11 Thread konrad Zielinski
Hi Alex, Well thats two improvements to the documentation. The description of set says: Stores new values any in the var arguments. I suspect it should say what you said above. and have a see also link to con. regs Konrad. On 11/10/2008, Alexander Burger <[EMAIL PROTECTED]> wrote: > Hi Konrad,

Re: Cutting a circular list.

2008-10-11 Thread Alexander Burger
Hi Konrad, > (set 'A (1 2 3 4)) > (set 'B (cdr A)) > ... > (set (cdr A) NIL) The 'set' function puts a value into the CAR part of a cell (no matter whether this is a list cell or a symbol). A B | | V V +-+-+ +--

Re: Cutting a circular list.

2008-10-10 Thread Henrik Sarvell
There has been some prior discussion on the list: http://www.mail-archive.com/search?q=circular+lists&l=picolisp%40software-lab.de It might or might not be of help. /Henrik -- UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Cutting a circular list.

2008-10-10 Thread konrad Zielinski
Hi, is there a way of cutting a circular list. for that matter how do we manupulat cons structure. This is one of the places where things in Pico do not work like I expect. (set 'A (1 2 3 4)) (set 'B (cdr A)) Now in Common Lisp I can do: (setf (cdr A) nil) and I will get: A = (1)