Everything2
Near Matches
Ignore Exact
Full Text
Everything2

mutable

created by xdc

(idea) by ophie (2 y) (print)   ?   (I like it!) Wed Jul 19 2000 at 14:20:02

as an astrological term, mutable is one of the qualities which are associated with a sign of the zodiac.

traits associated with mutable signs are an ability to adapt to any situation. this may make them easier to live and work with. however, they're adaptability make cause them to ignore their own personal development. as well, they may become bored without change.

these are named mutable, because they thrive on change.



the qualities: cardinal, fixed, mutable

(thing) by Eraser_ (4.6 y) (print)   ?   (I like it!) Sun Nov 05 2000 at 23:08:17

mutable: transient and able to be changed.

Dictionary of Sexology Project: Main Index


(idea) by cjeris (2.8 mon) (print)   ?   (I like it!) 1 C! Wed Jan 24 2001 at 19:26:58

In C++, one declares a data member of a class to be mutable to signify that its value may be changed even by methods or references which advertise via const that they do not change their target object. For instance, suppose you had a class PhoneNumberDatabase with a method

PhoneNumber lookupNumber(const Person& person) const;

This method is declared const because, semantically speaking, looking up a phone number shouldn't change the database. However, if you wanted to speed up your database by caching the last few numbers looked up, you might think to add a private member

std::vector<PhoneNumber> cached;

As written, this will not work, because lookupNumber, being a const method, cannot write to the cache. The preferred way to solve this problem is to declare cached to be mutable.

(The other preferred way is to write in a language such as Scheme or Objective Caml which relegates assignment to the ghetto where it belongs.)

Gorgonzola points out that, like any construct permitting assignment without mutual exclusion, mutable throws all guarantees of thread safety out the window.


(definition) by Webster 1913 (print) Wed Dec 22 1999 at 1:21:00

Mu"ta*ble (?), a. [L. mutabilis, fr. mutare to change. See Move.]

1.

Capable of alteration; subject to change; changeable in form, qualities, or nature.

Things of the most accidental and mutable nature. South.

2.

Changeable; inconstant; unsettled; unstable; fickle.

"Most mutable wishes."

Byron.

Syn. -- Changeable; alterable; unstable; unsteady; unsettled; wavering; inconstant; variable; fickle.

 

© Webster 1913.


printable version
chaos

Cardinal Virgo Pisces David Bowie freaked me out and then some
fixed C++ Sagittarius Why I Take This New Age Nonsense Seriously
Gemini the qualities phpMyAdmin timewave theory
Mu const semantic Transmute
Unicode Temporary Autonomous Zone Jack Rabbit Invoke
immutable virtual piecepack hashtable
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
Nodes your grandpa would have liked:
Guido Ubaldus' proof of the existence of God
Jack Kerouac character reference key
Sealand
Greek alphabet
Me and Sue and Ricky and God
It's a jailbreak; we're free.
The Yellow Wallpaper
Thirteen
wabi-sabi
This silence, it hurts me, just so you know
Everything2 is a community
Pleasures of the Flesh -- A tale told between blackouts
penis captivus
New Writeups
Cuckowski
Slavonic Princess(poetry)
Heitah
Posthumous Oscar(thing)
ignis_glaciesque
University of South Florida(place)
ignis_glaciesque
Flogstaskriket(idea)
liveforever
Caesar's last breath(idea)
dagnyswaggart
she wants to believe(personal)
antigravpussy
he doesn't know, but her eyes widen too far(thing)
dagnyswaggart
Wild tides guard her secrets(poetry)
Lord Brawl
Caesar's last breath(poetry)
locke baron
Forgotten things in space(fiction)
sitaraika
Colours(idea)
etouffee
Wild tides guard her secrets(poetry)
Lord Brawl
Dr. Horrible's Sing-Along Blog(review)
a8ksh4
regret(idea)
Heisenberg
Editor Log: July 2008(log)
This page courtesy of The Everything Development Company