[fpc-pascal] {$WARNINGS OFF} isn't local

2015-01-28 Thread Craig Peterson
ing (pipe) Unit2.s Assembling (pipe) Test.s Linking Test 27 lines compiled, 0.1 sec -- Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Thread Safety of String

2014-06-04 Thread Craig Peterson
that adding a critical section makes things noticeably slower? You're better off starting with something that you know is correct and optimizing it with questionable changes when you're sure you need it. -- Craig Peterson Scooter Software _

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Craig Peterson
existent, and irrelevant either way. I've mentioned it before OmniThreadLibrary doesn't require you to use anonymous functions. Even if that's true, it would significantly reduce the expressiveness of the resulting code, and I don't know how true it is beca

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Craig Peterson
edure (const elem: integer) begin if IsPrime(elem)then outQueue.Add(elem); end); http://otl.17slon.com/tutorials.htm -- Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepasca

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Craig Peterson
much more manageable short term goal than waiting for OpenMP support to be specified, implemented, and debugged. -- Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-26 Thread Craig Peterson
> On May 26, 2014, at 7:47 AM, Michael Schnell wrote: >> neither we are compatible with 3rd rail or radphp. > I never heard somebody call one of these "Delphi". RadPHP was originally marketed under the name "Delphi for PHP". --

Re: [fpc-pascal] TZipper and special file names like "atenção.txt" (#26213)

2014-05-23 Thread Craig Peterson
The Info-zip project maintains an annotated Appnote that lists a bunch of the extra fields that various vendors use here: http://www.info-zip.org/doc/ -- Craig Peterson Scooter Software___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] TZipper and special file names like "atenção.txt" (#26213)

2014-05-23 Thread Craig Peterson
On May 23, 2014, at 8:26 PM, silvioprog wrote: > 2014-05-23 15:50 GMT-03:00 Craig Peterson > I have a question. Adding this extended header, can I open/uncompress the zip > file normally in programs like 7z and WinRAR? Yes. The appnote describes the format for the "extra fi

Re: [fpc-pascal] TZipper and special file names like "atenção.txt" (#26213)

2014-05-23 Thread Craig Peterson
original author and I'm happy to relicense it if someone else wants to incorporate the code into paszlib. https://sourceforge.net/p/tpabbrevia/code/HEAD/tree/trunk/source/AbZipTyp.pas -- Craig Peterson Scooter Software ___ fpc-pascal maillist -

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-23 Thread Craig Peterson
t be more "Pascalish", but I want something that's compatible with Delphi because we need to keep using it on Windows for the foreseeable future. -- Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-22 Thread Craig Peterson
ct, or even just a new method and record and fill in that data is a lot of code, and consequently there are plenty of cases that would benefit from more asynchronous behavior or parallism that don't do so. -- Craig Peterson Scooter Software

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-22 Thread Craig Peterson
understand the code and would be able to do it in a reasonable timeframe. Ideally I'd just like to give the money to Blaise to finish the work, but he didn't respond to my email. -- Craig Peterson Scooter Software ___ fpc-pascal ma

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-21 Thread Craig Peterson
g to one person or split up, and we can take it off-list if it would help. -- Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-21 Thread Craig Peterson
and removing data marshalling scaffolding. I know our GUI design combined with the number of different asynchronous calls is rare in the Pascal community though, so I agree that for a lot of developers it won't be as large of a benefit. -- Craig Peterson Scooter Software

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-16 Thread Craig Peterson
at's it?" though. Yes, they're just syntax sugar. The alternative is creating a second procedure (polluting the namespace), declaring, allocating, and initializing a record with the local state, then passing it to that second function. It's doable, and that's exactly wha

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-16 Thread Craig Peterson
ing Dlg.Free; end; end; Again, these examples are extremely simplified. The benefits are much greater when you need to use variables in the outer scope. In our application we have over 90 dialogs and almost 400 calls to ShowModal, so the easier I can make that the better. -- Craig Pet

[fpc-pascal] Delphi compatible anonymous functions

2014-05-14 Thread Craig Peterson
Hi all, What's the current state of FPC's anonymous functions/closures support? Is anyone working on it? Is it something that a bounty would help with? Thanks, Craig Peterson Scooter Software ___ fpc-pascal maillist -

[fpc-pascal] Create class descendant at runtime?

2014-04-28 Thread Craig Peterson
es are all messier. -- Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CAB file format

2013-11-25 Thread Craig Peterson
On 11/25/2013 9:17 AM, Marcos Douglas wrote: > FPC has a lib to create CAB file format? Abbrevia can create CAB archives (Windows only) and the official releases support FreePascal. http://tpabbrevia.sourceforge.net/ -- Craig Peterson Scooter Softw

Re: [fpc-pascal] EMBT's FireMonkey framework with FPC

2013-06-24 Thread Craig Peterson
27;t work in Free Pascal mode anymore, and even if it is with minor tweaks, it won't stay that way as they continue changing the language. If you're ok rewriting just just the UI per platform, you should evaluate RemObject's Oxygene to

Re: [fpc-pascal] Object pascal language compatiblity - was: Does FPC 2.8.0 can actually still be called Pascal ?

2013-02-27 Thread Craig Peterson
isting generics and class helper support unusable. -- Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Any way to find all descendants of a class?

2012-02-29 Thread Craig Peterson
forms descend from, so I can add something there if necessary, and I don't need it to be compatible with Delphi. -- Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/lis

[fpc-pascal] Abbrevia 5.0 released

2011-12-07 Thread Craig Peterson
a website: http://tpabbrevia.sourceforge.net/ Release download: https://sourceforge.net/projects/tpabbrevia/files/Abbrevia%205.0.zip/download Support forums: https://sourceforge.net/projects/tpabbrevia/forums -- Craig Peterson Scooter Software ___ fpc-pascal maillist

Re: [fpc-pascal] resourcestring and const arrays

2011-06-25 Thread Craig Peterson
ces too. It would require changes to RTL and the compiler (to build the table), but the gettext functions wouldn't be affected at all. This is getting pretty technical though. Would I have better luck on fpc-devel? -- Craig Peterson Scooter Software ___

Re: [fpc-pascal] resourcestring and const arrays

2011-06-24 Thread Craig Peterson
#x27;t get them working correctly that's what I'll do. -- Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] resourcestring and const arrays

2011-06-24 Thread Craig Peterson
to look into it myself, but I would like to hear how attainable it's likely to be first, since I've never worked on a compiler before. -- Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] resourcestring and const arrays

2011-06-24 Thread Craig Peterson
k[0]); end; I've tried doing the same with FPC's GetText unit and SetResourceStrings. SSunday gets translated correctly, but SWeek doesn't. Is that something that should work if I'm early enough in the initialization order, an unimplemented feature, or something that's u

Re: [fpc-pascal] {$R file} support on non-Windows targets

2008-07-09 Thread Craig Peterson
available. We're currently using Kylix, but we're looking into swapping out the compiler for FPC first, with a transition from CLX to LCL sometime later. http://www.scootersoftware.com/beta3/ Regards, Craig Peterson Scooter Software ___

[fpc-pascal] {$R file} support on non-Windows targets

2008-07-09 Thread Craig Peterson
Was work done and never completed? Is it a TODO that just doesn't have anyone to work on it? Thanks, Craig Peterson Scooter Software ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal