Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #6129

Re: case sensitive file test

From druck <news@druck.org.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: case sensitive file test
Date 2020-06-04 20:49 +0100
Organization A noiseless patient Spider
Message-ID <rbbj94$271$1@dont-email.me> (permalink)
References <5876ae0c64bob@sick-of-spam.invalid> <5ed457bc$0$1436$e4fe514c@newszilla.xs4all.nl> <a248d019-7c38-439a-8d5f-62d6d817a285@googlegroups.com>

Show all headers | View raw


On 04/06/2020 17:23, jgh@mdfs.net wrote:
> Similarly, if there's some I/O information that won't change over the
> run of a program, read it once into a variable, then access the variable.
> For example: >   size%=EXT#inputfile then use size% instead of EXT#

Sorry, that's bad advice, a program should always assume filing system 
data may be altered by other processes.

1) Obviously if its a Wimp application, other tasks are running
2) If the single tasking program can be run a in taskwindow or graphic
    taskwindow, other tasks are running
3) If the file is on a remote filing system, other machines may alter it
4) If the file is on a local filing system which is shared, other
    machines may alter it.

So only if you are outside the desktop, and storage is on a local non 
shared disc, can you be sure it wont be altered by anything else.

> If your program is never going to change screen mode:
>   SYS whatever TO xsz%,ysz%,etc then use xsz% and ysz%

Only if its running outside the desktop. Inside the desktop the mode can 
change, so you need to ensure you handle the mode change message an 
re-read any mode related parameters you are using.

---druck

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 12:46 +0100
  Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 14:21 +0100
    Re: case sensitive file test Kevin Wells <kev@kevsoft.co.uk> - 2020-05-26 15:34 +0100
      Re: case sensitive file test Steve Fryatt <news@stevefryatt.org.uk> - 2020-05-26 17:12 +0100
        Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 17:42 +0100
          Re: case sensitive file test Steve Fryatt <news@stevefryatt.org.uk> - 2020-05-26 18:21 +0100
            Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 19:46 +0100
        Re: case sensitive file test Steve Drain <steve@kappa.me.uk> - 2020-05-27 13:14 +0100
          Re: case sensitive file test jgh@mdfs.net - 2020-05-27 16:25 -0700
            Re: case sensitive file test Steve Drain <steve@kappa.me.uk> - 2020-05-28 14:16 +0100
              Re: case sensitive file test druck <news@druck.org.uk> - 2020-06-01 20:01 +0100
      Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 17:29 +0100
        Re: case sensitive file test Steve Fryatt <news@stevefryatt.org.uk> - 2020-05-26 17:52 +0100
          Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 18:06 +0100
        Re: case sensitive file test "John Williams (News)" <UCEbin@tiscali.co.uk> - 2020-05-26 18:00 +0100
          Re: case sensitive file test "John Williams (News)" <UCEbin@tiscali.co.uk> - 2020-05-26 18:07 +0100
          Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 19:40 +0100
    Re: case sensitive file test David Higton <dave@davehigton.me.uk> - 2020-05-26 18:08 +0100
      Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 19:40 +0100
  Re: case sensitive file test Erik G <noreply123@xs4all.nl> - 2020-06-01 03:19 +0200
    Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-06-01 15:53 +0100
    Re: case sensitive file test druck <news@druck.org.uk> - 2020-06-01 20:57 +0100
    Re: case sensitive file test jgh@mdfs.net - 2020-06-04 09:23 -0700
      Re: case sensitive file test Martin <News03@avisoft.f9.co.uk> - 2020-06-04 17:51 +0100
      Re: case sensitive file test druck <news@druck.org.uk> - 2020-06-04 20:49 +0100
        Re: case sensitive file test jgh@mdfs.net - 2020-06-04 16:18 -0700
          Re: case sensitive file test druck <news@druck.org.uk> - 2020-06-05 11:27 +0100

csiph-web