Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-01

Variables declaraction inside code

8 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Something that I always thought very nice on other languages is the possible of adding variables inside the codes, I'm very happy using the FPC but came on my mind, FPC is always getting better and better (I first saw it like 2 years ago and I am impressed with its progress), would it on the future be possible? Declaring variables after the begin?

/*Just random thoughts*/

Thank you,
Bizz

Reply by email

Paul Ishenin
to Unknown author
Show quoted text 7 lines
Something that I always thought very nice on other languages is the possible of adding variables inside the codes, I'm very happy using the FPC but came on my mind, FPC is always getting better and better (I first saw it like 2 years ago and I am impressed with its progress), would it on the future be possible? Declaring variables after the begin? /*Just random thoughts*/

This was discussed few times here. Later ppl tired from the endless discussions and summarised their ideas on this page: http://wiki.lazarus.freepascal.org/Modernised_Pascal

Best regards,
Paul Ishenin

Reply by email

Unknown author
to Paul Ishenin
Paul Ishenin wrote 12 lines
12.01.2011 14:15, wrote: > Something that I always thought very nice on other languages is the > possible of adding variables inside the codes, I'm very happy using the > FPC but came on my mind, FPC is always getting better and better (I > first saw it like 2 years ago and I am impressed with its progress), > would it on the future be possible? Declaring variables after the begin? > > /*Just random thoughts*/ This was discussed few times here. Later ppl tired from the endless discussions and summarised their ideas on this page: http://wiki.lazarus.freepascal.org/Modernised_Pascal

I'm pretty sure that this abomination will be vetoed.

Michael.

Reply by email

LacaK
to Paul Ishenin: This was discussed few times here. Later ppl tired from the endless discussions and…
This was discussed few times here. Later ppl tired from the endless discussions and summarised their ideas on this page: http://wiki.lazarus.freepascal.org/Modernised_Pascal

Nice!
For me, If I can say is most interested:

1. try ... except ... finally ... end;
2. C style IIF operator: l ? true : false;
3. C style comments: /* ... */ (I have never understood why in Pascal
was used (* ... *) )

-Laco.

Reply by email

Aleksa Todorovic
to LacaK
LacaK wrote
3. C style comments: /* ... */ (I have never understood why in Pascal was used (* ... *) )

Because they are much more clear and easy to understand (both for compiler and for reader). C comments are very-very-very ugly. For example, you can write things like: a = b/*c; which fails if c is pointer to something.

Reply by email

Sven Barth
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 10 lines
LacaK schrieb: > 3. C style comments: /* ... */ (I have never understood why in Pascal > was used (* ... *) ) Pascal has several digraphs: (* = { *) = } (. = [ .) = ]

I must say, that I have not yet known about the alternatives for the squared brackets. O.o

One never stops learning...

(and they are even documented :D )

Regards,
Sven

Reply by email