RE: typecasts again
- Posted by Brian Broker <bkb at cnw.com> Jan 10, 2003
- 477 views
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