Spot the bug (three line program) and a question on how to order execution flow in a OOP



Spot the bug (hint: case sensitive).

Gave me an infinite loop, and drove me nuts (lost over an hour finding
it). This sort of stuff should IMO be caught by the compiler.

/*
private int ccUsrInputArrLength;
public int CcUsrInputArrLength
{ get { return CcUsrInputArrLength; } }

*/

Now another question: how's the best way to order how your OOP will
execute? I have a bunch of methods, and they have to execute in a
particular order.

Right now, I just comment each method saying "run this method first/
second/third" etc.

Is there a more rigorous way (for code maintenance)?

RL

.



Relevant Pages

  • Re: Spot the bug (three line program) and a question on how to order execution flow in a OOP
    ... and drove me nuts (lost over an hour finding ... This sort of stuff should IMO be caught by the compiler. ... public int CcUsrInputArrLength ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Mon. 3/17 Big Show Synopsis
    ... He's been on Conan a few times, trying to be sort of cool and smarmy. ... Imo, anytime a person is placed in public scrutiny to tackle personal ... What good is being an executive if you never get to execute anyone? ...
    (alt.fan.letterman)
  • Re: Spot the bug (three line program) and a question on how to order execution flow in a OOP
    ... This sort of stuff should IMO be caught by the compiler. ... I have a bunch of methods, and they have to execute in a ... In addition, if you really must have methods that have to execute in a specific order, you should try to organize your class so that either the methods that have to execute first are simply done so automatically, or you should check whatever state it is that the order of execution creates that you're depending on, and throw an exception if the state is not appropriate for a method that should be executed after some other method. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Alarming LACK of security in OS X
    ... When clicking on the application attachment, I got some sort of "This ... security, and only an idiot would do this"... ... seen Windows mail clients and mail servers tend to make it a real pain ... without at least modifying the file name so that it can't execute. ...
    (comp.sys.mac.advocacy)
  • Re: word document just keeps loading...
    ... Is it possible that the old file may contain some sort of macro that's ... trying to execute on open? ... > "uncorrupt" the document and allow it to open in Word 2004. ...
    (microsoft.public.mac.office.word)