Top "Variable-assignment" questions

A process of setting or re-setting the value stored in the storage location(s) denoted by a variable name.

Multiple assignment semantics

In Python one can do: a, b = 1, 2 (a, b) = 1, 2 [a, b] = 1, 2 I checked the generated bytecode using dis and they …

python variable-assignment
c++ does implicit copy constructor copy array member variable?

Possible Duplicate: How are C array members handled in copy control functions? I would guess implicit copy constructor (generated by …

c++ constructor copy variable-assignment
Indirect variable assignment in bash

Seems that the recommended way of doing indirect variable setting in bash is to use eval: var=x; val=foo …

bash eval variable-assignment quotes
Assignment makes integer from pointer without a cast [-Wint-conversion

I really don't understand why I have such error knowing that tmp and key are the same type and size. …

c arrays pointers variable-assignment uint8t
assigning class variable as default value to class method argument

I would like to build a method inside a class with default values arguments taken from this class. In general …

python class variable-assignment
Are multiple variable assignments done by value or reference?

$a = $b = 0; In the above code, are both $a and $b assigned the value of 0, or is $a just referencing $…

php variables variable-assignment
Javascript ternary operator and assignment

I get unexpected result for this simple JavaScript assignment statement: var t = 1 == 1 ? 1 : 0; undefined I would have expected to get 1 assigned …

javascript variable-assignment ternary
How does Python's comma operator works during assignment?

I was reading the assignment statements in the Python docs ( http://docs.python.org/reference/simple_stmts.html#assignment-statements ). In …

python tuples variable-assignment comma
Double Pipe Symbols in Ruby Variable Assignment?

Possible Duplicate: What does ||= mean in Ruby? Forgive me if this is a newby question but im reading a book …

ruby boolean variable-assignment
Assign value not reference in javascript

I am having a little problem assigning objects in javascript. take a look at this sample code that reproduces my …

javascript variable-assignment