There is, of course, the -W compiler switch that does exactly that.  Well, 
warns that there is a dangling ELSE associated with a WRITE.

> ----- Original Message -----
> From: "Brian Leach" <[EMAIL PROTECTED]>
> To: [email protected]
> Subject: RE: [U2] [BB] U2 Enhancement Request - WRITE
> Date: Wed, 23 May 2007 22:35:03 +0100
> 
> 
> The 'best practice' approach would be to use a single write subroutine and
> call that everywhere. That gives so many advantages (auditing, logging,
> using your own virtual triggers, date/time change stamping etc) - as well as
> having a single point to ensure that errors are captured..
> 
> But I'll agree it is more difficult to retrofit.
> 
> One thing I would like to see is the Else clause on a UniVerse write being
> controlled by a $OPTIONS setting. Whilst it is a GOOD THING, it causes real
> merriment when migrating code from systems that don't support it .. Consider
> 
> If sometest Then Write blah.. Else dosomething
> 
> On UniVerse the Else binds to the Write, on other platforms to the Then.
> 
> Having a compiler flag would be an easy way to circumvent that.
> 
> Regards
> 
> Brian
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to