Re: [fpc-pascal] default value of a sub range field produces No range Check error

2015-10-16 Thread Jonas Maebe
Dennis wrote: the fact that it raises NO range check error during Create and the first writeln seems weird. Range checks are inserted when a conversion from type A to type B occurs, with A <> B (and then it checks whether the value is a valid "type B" value). Values of fields in constructors

Re: [fpc-pascal] default value of a sub range field produces No range Check error

2015-10-16 Thread Peter
On 15/10/15 16:58, Dennis wrote: > > Perhaps the compiler should have a warning when defining a sub-range > field in class, telling users that it will be default to 0. > Hi, The problem is not restricted to classes. Type TSmall = 4..12; Var B : TSmall; ... Writeln (B): Shows the same

Re: [fpc-pascal] default value of a sub range field produces No range Check error

2015-10-16 Thread leledumbo
> the fact that it raises NO range check error during Create and the first > writeln seems weird. Line 16 (Inc statement) should raise one (ensure you're compiling with the correct option, by default range checking is off), the others shouldn't. Range check occurs on write, not read. -- View

[fpc-pascal] XML Canonicalization Support

2015-10-16 Thread Mazola Winstrol
Hello, Does the fcl-xml package supports xml canonicalization? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] XML Canonicalization Support

2015-10-16 Thread Michael Van Canneyt
On Thu, 15 Oct 2015, Mazola Winstrol wrote: Hello, Does the fcl-xml package supports xml canonicalization? Not to my knowledge. As far as I know, only the XML suite of eldos.com supports this. It should be compileable with FPC (at least, it was in the past), but it is commercial. Michael

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-16 Thread Ryan Joseph
> On Oct 15, 2015, at 4:38 PM, Mattias Gaertner > wrote: > > Actually it works like TFPMemoryImage and descends from > TFPCustomImage. The only difference is that it uses 4*8=32bit per pixel > instead of 4*16bit. Are any of these FPImage classes documented or should I just try to dig around t

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-16 Thread Felipe Monteiro de Carvalho
On Fri, Oct 16, 2015 at 3:19 AM, Ryan Joseph wrote: > Are any of these FPImage classes documented or should I just try to dig > around the FPC sources to > find these things? There are dozens of classes available at > http://wiki.freepascal.org/fcl-image but I > don’t know what any of them do.

Re: [fpc-pascal] XML Canonicalization Support

2015-10-16 Thread Dariusz Mazur
On 2015-10-16 03:50, Mazola Winstrol wrote: Hello, Does the fcl-xml package supports xml canonicalization? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal I've do one https

Re: [fpc-pascal] XML Canonicalization Support

2015-10-16 Thread Daniel Gaspary
On Fri, Oct 16, 2015 at 8:11 AM, Michael Van Canneyt wrote: > Not to my knowledge. The TDomParser has an option to cannonical form: Parser := TDOMParser.Create; Parser.Options.CanonicalForm:=True; TXmlWriter seems to have support too. ___ fpc-pascal

Re: [fpc-pascal] XML Canonicalization Support

2015-10-16 Thread Michael Van Canneyt
On Fri, 16 Oct 2015, Daniel Gaspary wrote: On Fri, Oct 16, 2015 at 8:11 AM, Michael Van Canneyt wrote: Not to my knowledge. The TDomParser has an option to cannonical form: Parser := TDOMParser.Create; Parser.Options.CanonicalForm:=True; TXmlWriter seems to have support too. Well, I l

Re: [fpc-pascal] XML Canonicalization Support

2015-10-16 Thread Mazola Winstrol
2015-10-16 15:19 GMT-03:00 Dariusz Mazur : > I've do one > > https://github.com/darekm/xades4fpc/blob/master/xmlc14n.pas > > > -- > Darek > > Very good news! Thanks a lot for the contribution! What is the stability of the implementation? ___ fpc-pascal