• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static transient member variable

 
Mathew Kuruvilla
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would anybody want to have a static transient member variable?
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, unless my mind is mixed up on terminology, there's no such thing as a static member variable (unless being a member of a class counts). I have more trouble thinking of a time when you would NOT want transient static.
[This message has been edited by David Garland (edited December 10, 2001).]
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mathew,
Transient just means the variable won't be serialized. Since 'static' vars aren't serialized anyways there's not much point in making a variable 'static transient'.
Not sure why anyone would want one but somewhere out there there is probably a person who has
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic