Subj : Question
To : Angus Mcleod
From : Frozen Fire
Date : Thu Aug 08 2002 04:14 pm
Re: Question
By: Angus Mcleod to Frozen Fire on Thu Aug 08 2002 01:10:00
> Re: Question
> By: Frozen Fire to Angus Mcleod on Wed Aug 07 2002 03:48:00
>
> > > You should not rely on the un-initialized value of a variable unless t
> > > language specification specifically states what that value will be.
> >
> > In most of the source files that came with SBBS, I
> > did not see any variables initialized, so I assumed the default for anyth
> > declared was off, or zero, save for things such as "str", which are used
> > internally.
>
> It's always a good idea to program as though there is a gun pointed at
> your foot.
>
> if ($x < 0) {
> # Negative $x
> . . .
> } elsif ($x == 0) {
> # Zero $x
> . . .
> } elsif ($x > 0) {
> # Positive $x
> . . .
> } else {
> # impossible
> print "Eeeeeeek!!!";
> exit 1;
> }
>
> Just because it's physically and mathematically impossible for something
> to happen, doesn't mean it WON'T happen! :-)
>
>
I understand that concept, but you'd have to talk to the hairball with very
sharp teeth currently occupying the space at my feet. She would not appreciate
such a gesture :-P
� � � � z � � � � � � �
---
� Synchronet � The Impact Matrix (impactmatrix.darktech.org)