Re: [fpc-pascal] XML Canonicalization Support
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 maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] XML Canonicalization Support
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 learn every day. This is good news !! Now to find out whether this is inclusive or exclusive canonical form :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] XML Canonicalization Support
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 maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] XML Canonicalization Support
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://github.com/darekm/xades4fpc/blob/master/xmlc14n.pas -- Darek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Loading PNG files as OpenGL textures
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. The wiki page that you linked has some examples: http://wiki.freepascal.org/fcl-image#Walk-through -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Loading PNG files as OpenGL textures
> 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 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. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] XML Canonicalization Support
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. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] XML Canonicalization Support
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] default value of a sub range field produces No range Check error
> 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 this message in context: http://free-pascal-general.1045716.n5.nabble.com/default-value-of-a-sub-range-field-produces-No-range-Check-error-tp5722908p5722909.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] default value of a sub range field produces No range Check error
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 issue. Takes default value of zero; no range check on the first writeln. Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] default value of a sub range field produces No range Check error
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 are not explicitly assigned, the instance is simply backed by a memory area that has been set to zero. Perhaps the compiler should have a warning when defining a sub-range field in class, telling users that it will be default to 0. The documentation says this already: http://www.freepascal.org/docs-html/3.0.0/ref/refsu24.html ("The example demonstrates that values of fields are initialized with zero (or the equivalent of zero for non ordinal types: empty string, empty array and so on).") A warning would be overkill, I think. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal