Top "Variable-assignment" questions

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

C++, what is := used for?

I'm seeing this in a program. I can't find anything on ":=". What is it used for? The program says: val1 := …

c++ variable-assignment operator-keyword colon-equals
MySQL How to get results after PREPARE and EXECUTE in Stored Procedure?

My current code is : DELIMITER \\ CREATE PROCEDURE sample (IN _car VARCHAR(15)) BEGIN DECLARE _a INTEGER; SET @s = CONCAT('SELECT COUNT(*) …

mysql variables variable-assignment execute procedures
Multiple assignment of non-tuples in scala

Just to clarify, when I say multiple assigment, parallel assignment, destructuring bind I mean the following pattern matching gem scala&…

arrays scala functional-programming pattern-matching variable-assignment
set default value in class constructor C#

I need a default value set and many different pages access and update..initially can I set the default value …

c# .net code-analysis static-variables variable-assignment
Member assignment in a const function

I have a class member myMember that is a myType pointer. I want to assign this member in a function …

c++ function constants variable-assignment member
JavaScript code trick: What's the value of foo.x

I found this problem in a GitHub front-end interview questions collection: var foo = {n: 1}; var bar = foo; foo.x = foo = {…

javascript object variable-assignment
Dynamic SELECT INTO in PL/pgSQL function

How can I write a dynamic SELECT INTO query inside a PL/pgSQL function in Postgres? Say I have a …

postgresql variable-assignment plpgsql dynamic-sql stored-functions
Why do C and C++ support memberwise assignment of arrays within structs, but not generally?

I understand that memberwise assignment of arrays is not supported, such that the following will not work: int num1[3] = {1,2,3}; int …

c++ c arrays variable-assignment struct
`x = y, z` comma assignment in JavaScript

Possible Duplicate: Javascript syntax: what comma means? I came across the code while reading this article (do a Ctrl+F …

javascript variable-assignment assignment-operator assign iterable-unpacking
How to restrict setting an attribute outside of constructor?

I want to forbid further assignments on some attributes of a class after it was initialized. For instance; no one …

python variable-assignment setattr