[REBOL] Re: hard coded somewhere?
From: gjones05:mail:orion at: 29-May-2001 5:50
From: "Volker Nitsch"
> Ursprüngliche Nachricht <
I kept meaning to look this up. This time I took it to the deBabelizer
and discovered that this mysterious phrase should have been 'obvious':
Ursprüngliche Nachricht
= "Original message"
As we say, inquiring minds want to know.
> > From: "Ammon Cooke"
> > > Using the foreach line example from Core.pdf I get this:
> > >
> > > jobfile: request-file/filter "*.jbs" /file "jobs.jbs"
> > > file-jobs: read/lines file jobfile
> > > foreach line file-jobs [
> > > append jobs/data copy line
> > > ]
> > > fix-slider jobs
> > > show jobs
> > >
> > > it always gives me the same data in 'jobs' (which
> > > happens to be a text-list) no matter what file I tell
> > > it to open. Why??
From: "Volker Nitsch"
> I think it will continue to fail :)
> my previous post showed, that request-file returns a block.
> But then this line should throw an error, not read data..:
> > > file-jobs: read/lines file jobfile
> hehe.
> > > file-jobs: read/lines jobfile
> this would throw the error ;-)
> Hi Ammon, you are allways reading the same 'FILE,
> not the one you request-file'd.
> Rebol reads it
> (file-jobs: read/lines file) jobfile
> and throws jobfile away.
> Congratulation! You caught me! ;-)
Yes, sometimes the simplest of 'bugs' can be the hardest to see. Not
with standing the more obvious error, I do believe that Ammon will need
to clear the data block in order to get rid of the original data, and
copying a fresh empty block seems the simpliest way to do it.
Thanks, Volker!
--Scott Jones