problems/risks due to programming language, stories requested

Charles Hannum CMH117 at psuvm.psu.edu
Wed Mar 14 14:11:02 AEST 1990


In article <879 at enea.se>, sommar at enea.se (Erland Sommarskog) says:
>
>    IF N = 0 THEN
>       Count := Count + 1;
>    END IF;
>    IF N IN 0..1 THEN
>       OCount := OCount + 1;
>    END IF;
>    IF N IN 0..2 THEN
>       Put(Count, 10);
>       Put(OCount, 10);
>       New_line;
>    ELSE
>       Put_line("Unknown.");
>    END IF;

But unless you have a REALLY GOOD optimizing compiler, this better not be in
a frequently executed loop!  (Can you say "SLOOOOOOOOW"?  I knew you could.)


Virtually,
- Charles Martin Hannum II       "Klein bottle for sale ... inquire within."
    (That's Charles to you!)     "To life immortal!"
  cmh117 at psuvm.{bitnet,psu.edu}  "No noozzzz izzz netzzzsnoozzzzz..."
  c9h at psuecl.{bitnet,psu.edu}    "Mem'ry, all alone in the moonlight ..."



More information about the Comp.lang.c mailing list