[futurebasic] open .rsrc file

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Sat, 06 Dec 1997 14:52:29 -0600
Bowerbird wrote:
> >however, i wish it would check for the availability of the .rsrc file
> >-- and tell me if that .rsrc file isn't available -- _before_ 
> >it goes through and compiles the code, instead of _afterwards_.
> >
> >(i'm compiling some very large programs on a very old machine,
> >so i pay a heavy penalty in wasted time when this happens.)

David wrote: 
> What's wasted?  You needed to compile anyway.  Notifying you earlier 
> wouldn't save you any time at all.  I really don't see what the big deal 
> is here...

David, I think the point Bowerbird is making is this:

Situation: My program takes 5 minutes to compile.  It happens to have no
compile-time errors in it (at the moment :-).  I now do a "Build,"
forgetting that I've foolishly left my .rsrc file open in ResEdit.

Current behavior: FB spends 5 minutes compiling, then at the _end_
informs me that it can't access the .rsrc file.  I mutter an oath, then
go to ResEdit and close the file.  I then do a "Build" again in FB. 
Five minutes later, I have a compiled program.  Total time spent: A bit
over 10 minutes.

Proposed behavior: FB parses the RESOURCES statement and _immediately_
tells me that it can't access the .rsrc file, and does not attempt to
compile any further.  I slap my forehead, then go to ResEdit and close
the file.  I then to a "Build" again in FB.  Five minutes later, I have
a compiled program.  Total time spent: A bit over 5 minutes.

i.e., the "Proposed behavior" saves me 5 minutes.  And makes me like FB
more. :-)

- Rick