closed

Loginbox

Please enter your username and password into the following fields to log in.


  • Username:
  • Password:
  •  
  • Auto log in on every visit.


  •  

local var init does not work any more



Avra hidden
Schreiberling
Avatar
Gender: male
Location: SERBIA  Belgrade, Serbia
Age: 48
Posts: 620
Registered: 07 / 2002
Homepage Private message
Subject: local var init does not work any more  -  Posted: 25.05.2019 - 00:22   -  
Hello Rolf,

In a 3 years old project this could be compiled without problems:
Code
function GetMux: byte;
var
  MuxPort: byte = 0; // new compiler shows here error: unexpected "=" found
begin
  ...
end;


I want to update that project to latest compiler and now I have to do it like this:
Code
function GetMux: byte;
var
  MuxPort: byte;
begin
  MuxPort := 0;
  ...
end;


Is this intentional behavior?
go down go up
rh offline
Administrator
Avatar
Gender: male
Location: GERMANY  Germany
Age:
Posts: 5450
Registered: 03 / 2002
Homepage Private message
Subject: Re: local var init does not work any more  -  Posted: 10.06.2019 - 22:25   -  
Hello Avra,
I had some heavy problems with this so i must remove this feature. Sorry.

rolf
Cars don't buy cars -- Autos kaufen keine Autos.
Henry Ford
go down go up
Avra hidden
Schreiberling
Avatar
Gender: male
Location: SERBIA  Belgrade, Serbia
Age: 48
Posts: 620
Registered: 07 / 2002
Homepage Private message
Subject: Re: local var init does not work any more  -  Posted: 11.06.2019 - 09:13   -  
Ok, that's not much of an issue anyway.
go down go up
 


Registered users in this topic
Currently no registered users in this section

Delete cookies of this forum  •  FAQ / Help  •  Team page  •  Imprint   |  Local time: 20.06.2019 - 15:37