Variable Declaration and assign like Delphi/Free Pascal

Post your requests and ideas on the future development of mikroPascal PRO for ARM.
Post Reply
Author
Message
corado
Posts: 399
Joined: 28 Mar 2009 11:03

Variable Declaration and assign like Delphi/Free Pascal

#1 Post by corado » 06 Jun 2017 04:29

Variabe Decleration and assign like Free Pascal / Delphi

VAR x : Byte = 1;

Many things in MikroPascal ist Pacal Style from the 80's but like C oder Free Pascal, Mikro Pascal should do any evolution too!

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: Variable Declaration and assign like Delphi/Free Pascal

#2 Post by darko.ilijevski » 06 Jun 2017 12:47

Hello,

That is an interesting suggestion. The only problem is that the people are used to the existing syntax and also many projects and libraries are already done with the same, existing syntax. I guess it might be added as an option, so it would work the both ways. Anyway I will pass the suggestion to the developers, thanks for the suggestion.
BR,
Darko

corado
Posts: 399
Joined: 28 Mar 2009 11:03

Re: Variable Declaration and assign like Delphi/Free Pascal

#3 Post by corado » 06 Jun 2017 12:55

But this isn't a problem.
In Freee Pascal/Deplhi both works.
You can do
VAR I : Byte;
you can also write
VAR I : Byte = 1;

They accepting both versions, so there ist no Problem with older code

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: Variable Declaration and assign like Delphi/Free Pascal

#4 Post by darko.ilijevski » 08 Jun 2017 11:34

Hi,

I have submitted your suggestion to the developers. We will see if they will incorporate it in the compiler - if they decide it's useful, they certainly will.

Best regards
BR,
Darko

Post Reply

Return to “mikroPascal PRO for ARM Wish List”