RE: Strange behavior in sequence handling

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Igor,

I was just kidding. I'm not very familiar with those languages but I know that
the only data structure in LISP is the list (hence its name LISP = LISt
Processing) and you get readily lost in the many parentheses that clog a typical
LISP program. I also mentioned PROLOG because I vaguely remember that some
dialects of PROLOG provide for the manipulation of recursively defined infinite
lists that would also display something like ((((((((((((((((((((... with the 3
dots figuring infinity.

Anyway, the gap between the approaches of declarative languages like LISP and
PROLOG and imperative languages like Euphoria makes it difficult, to me at least,
to compare the situation.

Any specialist out there?

Henri Goffin

> -----Original Message-----
> From:	Igor Kachan [SMTP:kinz at peterlink.ru]
> Sent:	Monday, May 07, 2001 16:06
> To:	EUforum
> Subject:	Re: Strange behavior in sequence handling
> 
> 
> Hi Henri,
> 
> > L[1] = L		-- Still OK
> > L[1][1] = L	-- Wow! Is this LISP or Prolog or something?
> > trace(0)
> 
> Eu outputs CauseWay crash-file with message,
> if ? L, or ? L[1], or ? L[1][1]
> 
> but ? length(L)  or ? L[2]  or ? L[3] are OK.
> 
> And what does LISP or Prolog do in this case ?
> 
> Just interesting to know, I am not
> familiar with these languages.
> 
> Regards,
> Igor Kachan
> kinz at peterlink.ru
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu