[futurebasic] Re: [FB] Back to basics - A dim question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2001 : Group Archive : Group : All Groups

From: Pete <furbies@...>
Date: Fri, 28 Sep 2001 01:02:35 +1000
jonathan on 27/9/01 11:58 PM  scrawled:

> dimming vars will only prevent crashes in that your code will be clearer and
> errors more obvious [not only to you, but also the compiler]. it will also
> reduce the chance of typos [you know 'thisvar = 21' in one line and 'thsivar
> = 22' in the next, and thus reduce heart-ache when things don't work when
> hey should. this is preventive medecine and not curative.
> 
> as to which way to declare them, following persuasive conversations with
> alain, i would go for the FB^3 way using the AS keyword. in fact if you want
> to 'type' a variable to a record, as in:
> DIM myTEHndl AS HANDLE TO TERec
> [which is amazingly useful and good preventive medecine also], it is the
> only way to go.
> 
> it is a matter of taste and discipline, but personally i do not regret the
> day that i adopted these practises.
> 
> :-j

Lord only knows how much trouble I've managed to avoid by following the
above advice

Pete...                             (the other one)