Varbool1, bool2, bool3 : boolean = false;
Varint1, int2, int3 : integer = 0;
Afaik mode objfpc has something like that. I never use it because IMHO it is dangerous. (same syntax for global and local variables, when globals are initialized only once, and locals every time they run, mistakes are too easily made)
var i,j,k: Integer = 255;begin WriteLn(i,' ',j,' ',k);end.
Are you referring to the variable initialization only or the multiple variable initialization?
Quote from: Leledumbo on November 22, 2014, 03:03:38 pmAre you referring to the variable initialization only or the multiple variable initialization?The initialization itself. From what I remember when it was introduced the disallow of multiple at once is on purpose. Because I didn't like the feature at all, I didn't track it with much attention though, so I don't remember the details.
IMHO people waste more time on threads like these than they will ever earn back with such feature.
var a : Integer = 255; b : Integer = 255; c : Integer = 255; d : Integer = 255; e : Integer = 255; f : Integer = 255; g : Integer = 255; h : Integer = 255; i : Integer = 255; j : Integer = 255; k : Integer = 255;
var a, b, c, d, e, f, g, h, i, j, k : Integer = 255;
QuoteIMHO people waste more time on threads like these than they will ever earn back with such feature. Hum... =>Code: [Select]var a : Integer = 255; b : Integer = 255; c : Integer = 255; d : Integer = 255; e : Integer = 255; f : Integer = 255; g : Integer = 255; h : Integer = 255; i : Integer = 255; j : Integer = 255; k : Integer = 255;vsCode: [Select]var a, b, c, d, e, f, g, h, i, j, k : Integer = 255;
In general people always want to improve the language while the heavy lifting must be done in the libraries.
And i have a other suggestion too => Delete that the Suggestions branch => there are not welcome and always boring...
Anyway, language suggestions are supposed to be accompanied with patches.