[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA: gnetlist ERROR: Stack overflow



Hi thi,

On 9 Jan 2002, Thien-Thi Nguyen wrote:

[snip]

> the other (standard) approach to this type of problem is to create a tree of
> strings, then flatten on output, avoiding `string-append' (and the non-linear
> big-O its usage introduces) altogether.  all netlisting is flattening, in
> essence.

Hm, I'm too string oriented when scheme are lists. Thanks for the hint.


> a quick untested rewrite:

But you cheat a bit. At least out of my perspective. I want to return a
string and your function displays it. If I replace display with
string-append, string-append will be called as many times as before. But I
just found a solution (I think); call-with-output-string.
IF there isn't a smooth function to convert a list of string to one
string. Is there?

Regards,
/spe
/----------------------------------\
! Stefan Petersen, MSc EE         !  \    
! http://www.stacken.kth.se/~spe/ !    \_________________________
! spe@stacken.kth.se              !    /  ! umop apisdn 'sdoo !
! stefan.petersen@home.se         !  /    ---------------------
\----------------------------------/