RE: typecasts again

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

Strike that... nevermind.  I didn't look at the code close enough.

Sorry,
Brian

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).
> 
> -- Brian

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

Search



Quick Links

User menu

Not signed in.

Misc Menu