Re: [fpc-pascal] Generics - how to rewrite TOjectDictionary

2013-04-07 Thread Dimitri Smits
Hi, Ever tried TStringList with Strings[] and Objects[] properties? kind regards, Dimitri Smits - Oorspronkelijk e-mail - > Van: "Marius" > Aan: fpc-pascal@lists.freepascal.org > Verzonden: Zondag 7 april 2013 18:48:02 > Onderwerp: [fpc-pascal] Gen

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

2013-03-05 Thread Dimitri Smits
ill be written in pascal. as a matter of fact, when you use the binutils and ld etc, you aren't exactly using a full pascal toolchain either, no? kind regards, Dimitri Smits ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-03-03 Thread Dimitri Smits
enefit. At least I am very curious to next fall when the next version(s) come out. Not in the least if they also support Android with a cross-platform library/interface between iOS and Android for common features, like they 'promised' las

Re: [fpc-pascal] converting c code

2012-05-13 Thread Dimitri Smits
t might work, but in general, a C++ for loop is better written as a pascal's "while ... do" of "repeat ... until" construct because of this. consider a loop where you want to exit out of when a condition is met. In C(++) you

Re: [fpc-pascal] Re: Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Dimitri Smits
dom(screenheight)]:= clSomeColor; end; end; then you seed with a timestamp before randoming and your distribution does not change much with a lcg. Not the fault of the algorithm itself, just your mistake of doing the randomize in the loop itself (like you mentioned yourself). kind re

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Dimitri Smits
byte in your data and reconstruct using OR the (index mod 8)-th bit on the (index div 8) octet. hardly encrypted ;-) kind regards, Dimitri Smits ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Dimitri Smits
affine cipher; this cipher is easily broken by standard frequency analysis. -- kind regards, Dimitri Smits ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-07 Thread Dimitri Smits
was suggested with the "pluggable" Random number generatorcall like the memorymanagers. like I said, just my 2cts... kind regards, Dimitri Smits ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Class reference doubt

2011-11-25 Thread Dimitri Smits
not declare the type, so in effect it always takes TClass. The other scenario's I've used before in classfactory pattern before. It has nothing and everything to do with RTTI. No, the new D2010+ RTTI does not give access to the default constructor (I think), but it I

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-08 Thread Dimitri Smits
ram? What is wrong with a shell script? while you may have valid reasons for doing so, have you tried to put that flow (calling of the 2 commands) into a single shell script and executing that instead? kind regards, Dimitri Smits ___ fpc-pascal maillis

Re: [fpc-pascal] Re: Library for network calculation

2011-07-27 Thread Dimitri Smits
don't have a Delphi in reach for the moment to verify, but you could do that to a const (if you enable the assignable constants setting) procedure SomeProc; const someconst: Integer = 22; begin //blabla someconst := 42; //yadda yadda end; - "Sven Barth" schreef: > Well... seems li

Re: [fpc-pascal] The new Delphi 2010 RTTI

2011-01-10 Thread Dimitri Smits
is the remark on "windows dll is a pe executable and linux .so's are how packages are supposed to be". Anybody can clarify that statement? kind regards, Dimitri Smits ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] The new Delphi 2010 RTTI

2010-12-22 Thread Dimitri Smits
=> reimplement, reinstate interface, change rtti again on types (if still possible). kind regards, Dimitri Smits - "Michael Van Canneyt" schreef: > On Wed, 22 Dec 2010, Dimitri Smits wrote: > > > Hi, > > > > what is so different on this mail than the one

Re: [fpc-pascal] The new Delphi 2010 RTTI

2010-12-22 Thread Dimitri Smits
to the XE upgrade :-). kind regards, Dimitri Smits - "Thierry Coq" schreef: > Hello, > > Delphi 2010 has changed the RTTI mechanism, and it is said to be much > > more usable than the previous one. > (see here for example: http://www.malcolmgroves.com/blog/?p=476)

Re: [fpc-pascal] Re: Can variables be declared within a block?

2010-10-18 Thread Dimitri Smits
beginning of the method. just to say that I'm not too fond of that c-ism in a pascal language (although I've used it plenty in c++, java, C#, php, ... over the years). kind regards, Dimitri Smits ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Nesting

2010-09-13 Thread Dimitri Smits
nt. A remnant of C-style programmers? Ofcourse there are cases where you need to use it, but in most cases it is about writing the correct control-statement. kind regards, Dimitri Smits ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: fpc-pascal Digest, Vol 72, Issue 12

2010-06-03 Thread Dimitri Smits
a container) I then conclude from your case above, Graeme, that fpgui does not work with containers like TPanel/TGroupbox/... and does not allow to "inject" extra visual controls on another form? kind regards, Dimitri Smits ___ fpc-pasc