Re: [fpc-pascal] Build in a C compiler

2016-04-19 Thread leledumbo
> That would be great. Nope > It is not that difficult. > { = begin > } = end > > and the other stuff is quite similar. Syntax is easy, well once you have fully working preprocessor too, but how about libraries? How will you convert scanf/printf/puts/etc? What if it uses 3rd party librarie

Re: [fpc-pascal] FCL maskutils incompatible with Delphi

2016-04-19 Thread silvioprog
On Tue, Apr 19, 2016 at 4:14 PM, Bart wrote: > On 4/19/16, silvioprog wrote: > > > The expected value: H1H357-K808K-44616-YK8720. > > > > The returned value: H1H357-K808K-44616-**. > > > > If you uncomment the code in the last writeln, it will raise the generic > > "FormatMaskText function f

[fpc-pascal] Build in a C compiler

2016-04-19 Thread Rainer Stratmann
That would be great. It is not that difficult. { = begin } = end and the other stuff is quite similar. Pascal and C are close related. It could be made with a compiler switch to determine if the compiler is in the Pascal or in the C compiling mode. No more need to translate (huge amount of)

Re: [fpc-pascal] Any chance to add the TStringBuilder to FCL?

2016-04-19 Thread Bart
On 4/18/16, Luca Olivetti wrote: > Wait, doesn't that evaluate to > > for i:=0 to -1 > > > at least if count is a signed integer? No, not if i is unsigned (and range-checking is off). Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] FCL maskutils incompatible with Delphi

2016-04-19 Thread Bart
On 4/19/16, silvioprog wrote: > The expected value: H1H357-K808K-44616-YK8720. > > The returned value: H1H357-K808K-44616-**. > > If you uncomment the code in the last writeln, it will raise the generic > "FormatMaskText function failed!" error. > The issue you describe looks like http://bu

[fpc-pascal] FCL maskutils incompatible with Delphi

2016-04-19 Thread silvioprog
Hello, Last week, a member of Lazarus Brazillian group reported a problem related to the MaskUtils unit. His message (adapted from pt-BR to en-US) was: *"Good afternoon.* *I need help with FormatMaskText, because it doesn't work properly with the same code that works fine on Delphi".* His refac

Re: [fpc-pascal] TMaskUtils.ValidateInput function: how is it supposed to behave?

2016-04-19 Thread Bart
On 4/18/16, Luiz Americo Pereira Camara wrote: > I propose to write a test suite first with the desired output, based on > Delphi. > I agree with the concept, but: Please note that Delphi (AFAICS) does not have a TMaskUtils class. The behaviour of TMaskEdit (and hence methods like ApplyMaskToTex

Re: [fpc-pascal] fpdoc fixes for FPC 3.0.2

2016-04-19 Thread Michael Van Canneyt
On Tue, 19 Apr 2016, Graeme Geldenhuys wrote: Hi, I have some fixes for fpdoc [and more to come] and would like them applied to FPC 3.0.2 if possible. Is there an estimate cut-off date for back-porting fixes to 3.0.2, or is there no release date set for 3.0.2 yet. No release date set yet.

[fpc-pascal] fpdoc fixes for FPC 3.0.2

2016-04-19 Thread Graeme Geldenhuys
Hi, I have some fixes for fpdoc [and more to come] and would like them applied to FPC 3.0.2 if possible. Is there an estimate cut-off date for back-porting fixes to 3.0.2, or is there no release date set for 3.0.2 yet. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free