Re: [fpc-devel] Declare variables inside the code

2011-05-11 Thread kingbiz...@gmail.com
Em 11/05/2011 17:01, Vinzent Höfler escreveu: On Wed, 11 May 2011 12:07:31 +0200, Hans-Peter Diettrich wrote: kingbiz...@gmail.com schrieb: I would like to be able this: [ some code after begin ] DoSomething; var I: Integer; for I := 0 to 1000 do DoAnotherThing(I); [ inside the code

Re: [fpc-devel] Declare variables inside the code

2011-05-10 Thread kingbiz...@gmail.com
Em 10/05/2011 18:29, Joerg Schuelke escreveu: Am Tue, 10 May 2011 23:50:29 +0200 schrieb Hans-Peter Diettrich: The syntax would look like: Block = "BEGIN" [Declarations] {Statement} "END" . Yea, it looks like C, but it is not. The difference in C like languages is that an declaration is just

Re: [fpc-devel] Declare variables inside the code

2011-05-10 Thread kingbiz...@gmail.com
Em 10/05/2011 18:50, Hans-Peter Diettrich escreveu: kingbiz...@gmail.com schrieb: *I have been playing on other languages sometimes and I see some features that speed-up a lot the code creating. I'm posting here one, I want to see what you think about it. * *Good:* fast algorithm tes

[fpc-devel] Declare variables inside the code

2011-05-10 Thread kingbiz...@gmail.com
*I have been playing on other languages sometimes and I see some features that speed-up a lot the code creating. I'm posting here one, I want to see what you think about it. * *Good:* fast algorithm testings, code creating *Bad?:* not a standard of the pascal language /*method* MyMethod; *var*

[fpc-devel] Variables declaraction inside code

2011-01-11 Thread kingbiz...@gmail.com
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 fu

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-11 Thread kingbiz...@gmail.com
Em 12/01/2011 05:00, Paul Ishenin escreveu: 12.01.2011 13:54, kingbiz...@gmail.com пишет: Well guys, thanks for replying, the generic method is a very nice method, I personally didn't know that the FPC support it, very thank you for that! FPC does not support it at the moment. I hope it

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-11 Thread kingbiz...@gmail.com
Em 12/01/2011 04:47, Marco van de Voort escreveu: In our previous episode, Paul Ishenin said: But even delphi does not have it for regular procedures/functions. I suppose because regular procedures/functions does not support overloading. ??? I use it all the time? Requires overload directive i