Everything2
Near Matches
Ignore Exact
Full Text
Everything2

static

"static" is also a: user

created by BeeJay

(idea) by Broccolist (3.9 y) (print)   ?   I like it! Sat Nov 13 1999 at 9:49:37

Statics are a feature introduced in C and then expanded in C++. C introduced static local variables, which are allocated on the global heap but can only be accessed by one function. C++ then introduced static member data, which is also allocated on the global heap and even has to be declared separately of the class declaration, as well as static methods, which are not passed the "this" pointer but otherwise are the same as normal methods.

(idea) by 0r4c13 (?) (print)   ?   I like it! Sat Nov 13 1999 at 9:49:37

general definition: unchanging, constant. a contrasting meaning of static is representative of noise as in telephone line noise, wireless communication such as analog cellular telephones and radio transmission interference by frequency modulation or amplitude modulation.

(idea) by bitter_engineer (6.3 y) (print)   ?   I like it! Wed Jun 21 2000 at 1:41:48

The static keyword has a slightly different meaning in Java than in C or C++. Since Java is a purely Object-Oriented Language, static variables are always members of a class, and never local variables of a method. Static objects are still created on the global heap and are not associated with any particular instance of the class.

You can also define a static block of code that will initialize your static objects the first time the class is instantiated. This can save some typing if you have several constructors.


(idea) by jafuser (9.3 mon) (print)   ?   I like it! Wed Oct 11 2000 at 2:24:04

Static means stagnation, unchanging, or not moving.

It is also a form of electricity which we are frequently reminded of during cold weather; upon reaching for a grounded metal object, we can experience several thousand volts of static electricity (fortunately the amperage is too low to do any damage).

Static friction is the friction which must be overcome to put an object into initial motion. Static friction (such as that on a book lying flat on a table) makes the initial movment of the object require more energy than what is required to overcome the object's dynamic friction (after the book is already in motion).


(thing) by ariels (2.6 d) (print)   ?   I like it! Thu Dec 14 2000 at 13:50:14

static type definitions in C serve 2 somewhat different purposes. In all cases, they define an item of data which is global in the sense that only one copy exists for the entire runtime of the program. It can be viewed as setting a peculiar "local" scope for a global variable or function.

The scope of an object defined static follows the usual scoping rules for C: for a variable, till the end of the block (typically the function) in which it is defined, or till the end of the file, if defined outside any functions; for a function, merely till the end of the file (in C, functions cannot be defined inside functions). This aspect of staticness refers to the visibility of the object. For a function definition (or declaration), this is the only effect -- functions don't have storage types.

The storage type of a variable defined static is global, even in an inner block scope rather than file scope. This means that the variable retains its value between calls to the function. This behaviour is very different from the default automatic status of variables defined in a block, which only exist inside the block. In particular, you may freely return a pointer to (or into) a static variable's storage from a function, but you cannot do so for an automatic variable.


(definition) by Webster 1913 (print) I like it! Wed Dec 22 1999 at 3:23:51

Stat"ic (?), Stat"ic*al (?), a. [Gr. causing to stand, skilled in weighing, fr. to cause to stand: cf. F. statique. See Stand, and cf. Stage.]

1.

Resting; acting by mere weight without motion; as, statical pressure; static objects.

2.

Pertaining to bodies at rest or in equilibrium.

Statical electricity. See Note under Electricity, 1. -- Statical moment. See under Moment.

 

© Webster 1913.


printable version
chaos

Funny C declarations static electricity ten commandments for c++ programmers If the Bible wasn't full of things you disagree with, would you start believing in God?
C++: static extern "C" What makes music good radio interference class method
stagnant Godspeed You Black Emperor! Admission essay void
Heap suburbanite auto Endurance: a radio tale
Musical Grade Boards white noise Mental HUD VASCAR
dynamic Meshuggah Mutations The Tesla Coil made me cry, but I got a free lunch out of it.
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Look at this mess the Death Borg made!
Slave housing in the American South
Katie, formerly known as Wolf
Dead cat bounce
My small mark on the world
Alex Chilton
Walter Benjamin
Lesbian conspiracy
Athens
Solo photo album
humanism
I don't have any secrets. Now ask me if I have any lies.
Zeno's Paradox as proof of a finite universe
Similarity of fractals to natural objects
New Writeups
destination unknown
msg yourself(person)
destination unknown
Turkey(person)
SteveMurrayFromNZ
Waiver(idea)
nailbiter
nerve stapling(thing)
locke baron
Multiple Myeloma(thing)
SubSane
blonde, freckles, skinny, short(person)
arcanamundi
A Ruba'iyat for May(person)
riverrun
Timed Writing(idea)
auraseer
Fling(fiction)
StrawberryFrog
Iron Man(review)
devolution
Misogyny and Porn, East to West - An Empirical Analysis(idea)
devolution
Korea is a place that refuses to stand still(idea)
Beanie127
The Pacifist Soldier(fiction)
VergilKint
Distilled from Dreams(fiction)
Scaevola
Roman marriage(thing)
Everything 2 is brought to you by the letter C and The Everything Development Company