Subject: Re: `loop' and arrays
From: Erik Naggum <clerik@naggum.no>
Date: 1998/08/02
Newsgroups: comp.lang.lisp
Message-ID: <3111045203808728@naggum.no>

* Marco Antoniotti
| CLtL2 and ANSI warn against changing the structure being iterated over.
| You are asking for trouble.

  hm?  the relevant warnings explicitly allow changing the values without
  changing the structure.  if you traverse a list, you can change the CARs,
  but not the CDRs.  if you traverse a hash table, you can change the value
  for the given key, even delete it, but not any others.  etc.  it's kind
  of hard to change the structure of a vector you're traversing, though.

#:Erik
-- 
  http://www.naggum.no/spam.html is about my spam protection scheme and how
  to guarantee that you reach me.  in brief: if you reply to a news article
  of mine, be sure to include an In-Reply-To or References header with the
  message-ID of that message in it.  otherwise, you need to read that page.