[REBOL] Re: how to do simple exclusive open -- don't use negative logic
From: petr:krenzelok:trz:cz at: 6-Jun-2001 21:28
----- Original Message -----
From: "Anton" <[arolls--bigpond--net--au]>
Sent: Wednesday, June 06, 2001 7:39 PM
Subject: [REBOL] Re: how to do simple exclusive open -- don't use negative
> I would suggest you *not* use negative logic,
> as in:
> either not exists? semaphore-port [ ; ... does semaphore already exists?
> The above question is incorrectly placed, I think.
I am not sure if you mean it's english meaning, so if so, what about this
->> doesn't: func [arg][not arg]
->> exist?: :exists?
->> if doesn't exist? %/C/bbb.txt [print "No such file"]
No such file