RE: typecasts again

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

On 10 Jan 2003, at 18:57, Brian Broker wrote:

> 
> Kat wrote:
> > This line:
> > 
> > while sequence(TheWebPage[junk][1]) and match(" ",TheWebPage[junk][1]) 
> > do
> > 
> > errors out with :
> > 
> > attempt to subscript an atom
> > (reading from it) 
> > 
> > Since TheWebPage[junk] is a sequence, 
> > TheWebPage[junk][1] is a sequence, where is it an atom??
> > 
> > Kat
> 
> I'm not sure I follow the logic in your last statement there.  Just 
> because TheWebPage[junk] is a sequence doesn't imply that 
> TheWebPage[junk][1] is also a sequence.  For example, if 
> TheWebPage[junk] = "Some text" then TheWebPage[junk][1] = 'S', which is 
> an atom (or integer).

When i assigned it, i gave it a sequence. Then i munge it. It runs a few 1000 
times, and then crashes. Nevermind, i needed it running, so i changed it 
all already.

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu