Click here to Skip to main content
16,005,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: static variables in methods Pin
Nick Parker5-May-02 16:33
protectorNick Parker5-May-02 16:33 
GeneralRe: static variables in methods Pin
Daniel Turini7-May-02 12:48
Daniel Turini7-May-02 12:48 
GeneralRe: static variables in methods Pin
tomiga5-May-02 19:45
tomiga5-May-02 19:45 
GeneralRe: static variables in methods Pin
Neil Van Note5-May-02 20:08
Neil Van Note5-May-02 20:08 
GeneralRe: static variables in methods Pin
James T. Johnson5-May-02 14:17
James T. Johnson5-May-02 14:17 
GeneralRe: static variables in methods Pin
Neil Van Note5-May-02 14:58
Neil Van Note5-May-02 14:58 
GeneralRe: static variables in methods Pin
James T. Johnson5-May-02 15:22
James T. Johnson5-May-02 15:22 
GeneralRe: static variables in methods Pin
Tom Archer5-May-02 16:36
Tom Archer5-May-02 16:36 
Neil Van Note wrote:
In C++, static locals are shared among all instances of a class, not very useful for state information of a recursive function.

I disagree. You're making the assumption that the class will be instantiated many times.

Neil Van Note wrote:
In C++ I have never found a good reason to use the feature

One example is how window procs were/are written without MFC. Another example if when iterating over a chain of entities where each function call works on a given link and a static variable is used to keep track of current position.




Cheers,
Tom Archer
Author, Inside C#
Author, Visual C++.NET Bible

A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
GeneralRe: static variables in methods Pin
Neil Van Note5-May-02 17:28
Neil Van Note5-May-02 17:28 
GeneralRe: static variables in methods Pin
Eric Gunnerson (msft)7-May-02 9:27
Eric Gunnerson (msft)7-May-02 9:27 
Generalassembly (technical problem) Pin
tomiga4-May-02 3:05
tomiga4-May-02 3:05 
Generalsqlconnection open dialog Pin
tomiga4-May-02 1:10
tomiga4-May-02 1:10 
Questioncan .net serve like an VBA? Pin
3-May-02 19:59
suss3-May-02 19:59 
AnswerRe: can .net serve like an VBA? Pin
Tom Archer4-May-02 4:14
Tom Archer4-May-02 4:14 
GeneralRe: can .net serve like an VBA? Pin
4-May-02 14:09
suss4-May-02 14:09 
GeneralRe: can .net serve like an VBA? Pin
James T. Johnson4-May-02 21:11
James T. Johnson4-May-02 21:11 
Generalany tools to analyse performance of C# Pin
3-May-02 19:32
suss3-May-02 19:32 
GeneralRe: any tools to analyse performance of C# Pin
Neil Van Note3-May-02 20:48
Neil Van Note3-May-02 20:48 
GeneralRe: any tools to analyse performance of C# Pin
Neil Van Note3-May-02 23:28
Neil Van Note3-May-02 23:28 
GeneralRe: any tools to analyse performance of C# Pin
Maxwell Chen4-May-02 0:25
Maxwell Chen4-May-02 0:25 
GeneralRe: any tools to analyse performance of C# Pin
James T. Johnson4-May-02 0:28
James T. Johnson4-May-02 0:28 
GeneralRe: any tools to analyse performance of C# Pin
Neil Van Note4-May-02 1:14
Neil Van Note4-May-02 1:14 
GeneralRe: any tools to analyse performance of C# Pin
4-May-02 14:38
suss4-May-02 14:38 
GeneralRe: any tools to analyse performance of C# Pin
Neil Van Note5-May-02 15:27
Neil Van Note5-May-02 15:27 
GeneralDoubleBuffering and String Question Pin
Nick Parker3-May-02 9:59
protectorNick Parker3-May-02 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.