Top "Variable-assignment" questions

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

How to store ERRORLEVEL in a variable?

I'm trying to store the ERRORLEVEL environment variable into a a local batch variable. But it always turns out to …

batch-file windows-7 variable-assignment errorlevel
What can I do with a moved-from object?

Does the standard define precisely what I can do with an object once it has been moved from? I used …

c++ c++11 variable-assignment swap move-semantics
How do access specific tokens with Java's StringTokenizer?

I'm using Buffered Reader to pass individual lines of a file to Java's StringTokenizer. The file is structurd as follows: "2,0";"12345";"…

java variable-assignment stringtokenizer
What is this kind of assignment in Python called? a = b = True

I know about tuple unpacking but what is this assignment called where you have multiple equals signs on a single …

python variable-assignment
println in scala for-comprehension

In a for-comprehension, I can't just put a print statement: def prod (m: Int) = { for (a <- 2 to m/(2*3); …

scala variable-assignment println for-comprehension
How does javascript logical assignment work?

In javascript, if we have some code such as var a = "one"; var b = q || a; alert (b); The logical …

javascript variable-assignment logical-operators
Type mismatch error between java.lang.String and String

This is really an odd problem, I've never encountered something like it. The following is a helper class I have …

java string types variable-assignment mismatch
Return value of assignment operator in concurrent code

Given the following class: class Foo { public volatile int number; public int method1() { int ret = number = 1; return ret; } public int …

java concurrency variable-assignment jls
Why does values of both variable change in Python?

I have a small piece of code and a very big doubt. s=['a','+','b'] s1=s print …

python variable-assignment del
In JavaScript, is chained assignment okay?

Am not new to JS or its syntax, but sometimes, the semantics of the language has me stumped at times. …

javascript object variable-assignment