Top "Variable-assignment" questions

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

Javascript AND operator within assignment

I know that in JavaScript you can do: var oneOrTheOther = someOtherVar || "these are not the droids you are looking for..."; …

javascript variable-assignment logical-operators and-operator
myView.frame.origin.x = value; does not work - But why?

I know that I can't use this: myView.frame.origin.x = 25.0; and that I have to use this instead: CGRect …

objective-c struct variable-assignment declared-property
Why is x == (x = y) not the same as (x = y) == x?

Consider the following example: class Quirky { public static void main(String[] args) { int x = 1; int y = 3; System.out.println(x == (…

java variable-assignment equality operator-precedence jls
Why can not I add two bytes and get an int and I can add two final bytes get a byte?

public class Java{ public static void main(String[] args){ final byte x = 1; final byte y = 2; byte z = x + y;//ok …

java int variable-assignment scjp ocpjp
Test if an argument of a function is set or not in R

I have a function f that takes two parameters (p1 and p2): If for the parameter p2 no value was …

r function variables variable-assignment isset
SELECT INTO with more than one attribution

This instruction works: SELECT INTO unsolvedNodes array_agg(DISTINCT idDestination) FROM road WHERE idOrigin = ANY(solvedNodes) AND NOT (idDestination = ANY(…

sql postgresql variable-assignment plpgsql
Continuous assignment verilog

-This code is written in verilog using Modelsim 10.2d.The errors below indicate there is some problem with {cout,l3} …

variable-assignment verilog system-verilog alu
Splitting Declaration and Assignment = Good Practice?

Being an avid user of NetBeans, I keep getting suggestions to split my variable declarations and assignments when I introduce …

java variables variable-assignment declaration
Python: What does the use of [] mean here?

What is the difference in these two statements in python? var = foo.bar and var = [foo.bar] I think it …

python list syntax brackets variable-assignment
Use value if it exists, else assign default using the or operator

I found this example in a book: // Create _callbacks object, unless it already exists var calls = this._callbacks || (this._callbacks = {}); …

javascript variable-assignment or-operator