Top "Variable-assignment" questions

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

Ruby: OptionParser: String Arg & Hash Assignment

Using OptionParser for string argument input and hash assignment. What is the best way to read-in multiple variables for a …

ruby variables split variable-assignment optionparser
Assign a std::vector to a std::valarray

I have a vector<vector<double>, so a table (matrix) of values. Columns contains position and velocity …

c++ c++11 variable-assignment std valarray
Assign a byte array to a 2 dimensional byte array

I want to assign a byte[] to a byte[][] but it gives me the run-time error : Object reference not set …

c# arrays bytearray variable-assignment type-2-dimension
How to assign hash['a']['b']= 'c' if hash['a'] doesn't exist?

Is there any way simpler than if hash.key?('a') hash['a']['b'] = 'c' else hash['a'] = {} hash['a']['b'] = …

ruby hash variable-assignment autovivification hash-of-hashes
delphi object assign vs :=

Could someone explain the difference between: (1.) newObj := TMyObject.Create; newObj.Assign(oldObj); and (2.) newObj := oldObj; in 2. does newObj and oldObj …

delphi object variable-assignment colon-equals
Is pointer assignment atomic in C++?

I've actually heard claims both ways. I suspect they are not, but I wanted to get the topic settled.

c++ multithreading pointers variable-assignment atomicity
pandas multiindex assignment from another dataframe

I am trying to understand pandas MultiIndex DataFrames and how to assign data to them. Specifically I'm interested in assigning …

python pandas variable-assignment multi-index
evaluation of assignment in php

I have a kind of 'basics' question about php. In the example code for fgets, it has this snippet as …

php variable-assignment evaluation
Difference between a -= b and a = a - b in Python

I have recently applied this solution for averaging every N rows of matrix. Although the solution works in general I …

python arrays numpy variable-assignment in-place
How to directly assign complex numbers to a variable?

Using the complex class and library, how do I assign a complex number to a variable? I understand that I …

c++ variable-assignment complex-numbers comma-operator