Re: [fpc-pascal] Blockread blockwrite var vs out parameters

2015-12-16 Thread Frederic Da Vitoria
p://www.freepascal.org/docs-html/rtl/system/finalize.html > Not important, but there is a typo there: "necessaru" -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org __

Re: [fpc-pascal] Blockread blockwrite var vs out parameters

2015-12-16 Thread Frederic Da Vitoria
now I have an idea why. Now what I should do is add {%H-} on each line containing blockread, blockwrite, fillchar and so on... This isn't so difficult, after all. The only drawback is that it could potentially hide another perfectly valid warning. -- Frederic Da Vitoria (davitof) Membre de l&#x

Re: [fpc-pascal] howto store passwords

2015-11-01 Thread Frederic Da Vitoria
ate that the majority of the big web sites currently don't store the passwords. -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ fpc-pascal maillist - fp

Re: [fpc-pascal] is scrypt available?

2015-10-30 Thread Frederic Da Vitoria
2015-10-30 16:39 GMT+01:00 Jonas Maebe : > > Frederic Da Vitoria wrote on Fri, 30 Oct 2015: > > Do you really need to compare them or simply to validate them? I ask >> because in one project I worked on for an insurance company, we were >> forbidden to store the password

Re: [fpc-pascal] is scrypt available?

2015-10-30 Thread Frederic Da Vitoria
2015-10-30 0:33 GMT+01:00 : > On 10/29/2015 01:08 PM, Frederic Da Vitoria wrote: > >> Good point. I'd even ask the question: do you really need to store the >> passwords? IOW, do you want to be able to send them back to the user? Or >> do >> you only need to

Re: [fpc-pascal] is scrypt available?

2015-10-29 Thread Frederic Da Vitoria
http://www.wolfgang-ehrhardt.de/crchash_en.html > Good point. I'd even ask the question: do you really need to store the passwords? IOW, do you want to be able to send them back to the user? Or do you only need to check them? -- Frederic Da Vitoria (davitof) Membre de l'April - « pr

Re: [fpc-pascal] Please trim your quotes

2015-07-22 Thread Frederic Da Vitoria
y. For example, in my GMail, it is called "Insérer le texte sélectionné" -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread Frederic Da Vitoria
7;)+1 > Not sure which pascal its inherited from... but Delphi 7 does compile it > too. > > I vaguely remember it seeing before once .. and ... a lot of time ago. > IIRC good old Turbo Pascal had this too. -- Frederic Da Vitoria (davitof) Membre de l'April - « pr

Re: [fpc-pascal] FPC Heap Management : sub-allocation ?

2014-10-31 Thread Frederic Da Vitoria
ome unusable. This did happen quite frequently to me with Windows XP 32 bits. I now use Windows 7 64 bits, and it hasn't happened to me since, but I guess that's only because I haven't tried hard enough :-) -- Frederic Da Vitoria (dav

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-17 Thread Frederic Da Vitoria
n TP and Delphi), so if anything the only > thing lacking is some minor documentation. > Also please don't hijack threads. > I guess different communities have different rules, but I don't understand (and I'd better understand if I don't want to do the same mistake): in

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-16 Thread Frederic Da Vitoria
> produce a message (hint, warning or error, which may be configurated). > > > > > > > > > is not it a way to make the "with" safe? > > > > How to get rid of the hint? > > Either get rid of the "with" or use a compiler directive to

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-16 Thread Frederic Da Vitoria
2014-09-16 12:36 GMT+02:00 Frederic Da Vitoria : > 2014-09-16 12:26 GMT+02:00 Philippe : > >> Em 16.09.2014 05:44, Frederic Da Vitoria escreveu: >> >> 2014-09-14 16:23 GMT+02:00 Mark Morgan Lloyd < >> markmll.fpc-pas...@telemetry.co.uk>: >> >>

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-16 Thread Frederic Da Vitoria
2014-09-16 12:26 GMT+02:00 Philippe : > Em 16.09.2014 05:44, Frederic Da Vitoria escreveu: > > 2014-09-14 16:23 GMT+02:00 Mark Morgan Lloyd < > markmll.fpc-pas...@telemetry.co.uk>: > >> I'd be far happier if there were provision for declaring a temporary

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-16 Thread Frederic Da Vitoria
gt;begin >shortcut.DirLogged := true; >shortcut.DirHatFocus := false; >shortcut.SubDirsExpanded := true; > Yes, something close to alias in SQL, instead of plain elision which "with" currently performs. This would allow for a clearer writing w

Re: [fpc-pascal] Elegant way to switch sort mechanism in TSortedCollection?

2014-03-13 Thread Frederic Da Vitoria
tire thing to a memory stream, it would copy all of the > data and every re-sort would go pretty slowly. You are sorting only for display purposes? If so, maybe VirtualTreeView could do the trick. -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel

Re: [fpc-pascal] Elegant way to switch sort mechanism in TSortedCollection?

2014-03-12 Thread Frederic Da Vitoria
ch sort order and systematically insert each item in all those collections. The overhead would be in the initial loading, but then switching would be instantaneous. -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org

Re: [fpc-pascal] Mail reception order

2014-02-27 Thread Frederic Da Vitoria
2014-02-25 14:45 GMT+01:00 Frederic Da Vitoria : > I should probably ask Google what is going on. I know: I don't have much > chances of getting an answer. > I asked and I got an answer from Google, they were having issues with their servers. No information about what issues,

[fpc-pascal] Mail reception order

2014-02-25 Thread Frederic Da Vitoria
idea of what is going on. IIUC, this is happening inside Google's systems. Am I correct? If so, I should probably ask Google what is going on. I know: I don't have much chances of getting an answer. BTW, I don't know what the X-Received header means. -- Frederic Da Vitoria (davi

Re: [fpc-pascal] freepascal community and USB printing

2014-02-07 Thread Frederic Da Vitoria
2014-02-07 Michael Schnell : > On 02/07/2014 10:18 AM, Frederic Da Vitoria wrote: > >> Well, this should always be the behavior, not only for this mailing list. >> > > In the era of facebook and twitter communication habits are bound to > decline. > Of course,

Re: [fpc-pascal] freepascal community and USB printing

2014-02-07 Thread Frederic Da Vitoria
> is there a way to get the informations posted ... > > and you did it (hijacked the same thread with another topic) again :/ > > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailma

Re: [fpc-pascal] freepascal community and USB printing

2014-02-07 Thread Frederic Da Vitoria
> Sadly at least some popular webmail clients (GMail) don't use Message-ID either, so that the messages are in the order they were received instead of the order of the answers and some answers are shown in a separate thread because GMail thinks the subject has changed ("Re." is

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-07 Thread Frederic Da Vitoria
eyOf http://lazarus-ccr.sourceforge.net/docs/rtl/objects/tsortedcollection.keyof.html. So IMO you should simply remove your implementation of KeyOf and edit Compare so that it receives PTLERec and uses the relevant fields instead of a simple string. -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] freepascal community and USB printing

2014-02-06 Thread Frederic Da Vitoria
gt; fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org _

Re: [fpc-pascal] windows title

2014-02-06 Thread Frederic Da Vitoria
n't understand the relation between cmd.exe and your program source. Do you mean that you want to create a program which would open a cmd.exe window and give it a title? Or do you want to run cmd manually and from inside it run a program which would change the window's title? Or somethin

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-06 Thread Frederic Da Vitoria
2014-02-06 waldo kitty : > On 2/5/2014 3:57 AM, Frederic Da Vitoria wrote: > [...] > > Once again I did not test this, but it seems to me that if Compare >> returned -1 >> instead of 0, any duplicate would be inserted after because it would >> never be >> c

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-05 Thread Frederic Da Vitoria
2014-02-05 waldo kitty : > On 2/4/2014 5:16 PM, Frederic Da Vitoria wrote: > >> 2014-02-04 waldo kitty > wkitt...@windstream.net>>: >> > [...] > > i kinda thought about that earlier when i was digging thru the >> code... IIRC, >> insert

Re: [fpc-pascal] TSortedCollection dupes ordering

2014-02-04 Thread Frederic Da Vitoria
re cases where the existing > record needs to be replaced (because the new record is newer) using AtPut > and the non-added records must be logged and their reason for not being > added (older or same)... Just a quick idea which could be completely wrong, but wouldn't it solve y

Re: [fpc-pascal] ExtractStrings skips empty string parts?

2014-01-26 Thread Frederic Da Vitoria
I can imagine that the Delphi developers started from a routine to extract words from texts, where several spaces between 2 words would count only as one separator. -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org __

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread Frederic Da Vitoria
sic is not a language I like, but still... -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Freeing dynamic controls

2013-12-17 Thread Frederic Da Vitoria
2013/12/17 Sven Barth > On 17.12.2013 22:02, Frederic Da Vitoria wrote: > >> 2013/12/17 Sven Barth > <mailto:pascaldra...@googlemail.com>> >> >> >> Am 17.12.2013 16:39 schrieb "Frederic Da Vitoria" >> mailto

Re: [fpc-pascal] Freeing dynamic controls

2013-12-17 Thread Frederic Da Vitoria
2013/12/17 Sven Barth > Am 17.12.2013 16:39 schrieb "Frederic Da Vitoria" : > > > > > Hello, > > > > In the following program, I get a runtime error I don't understand. This > is a stripped down version of the code. This was written in Delphi

[fpc-pascal] Freeing dynamic controls

2013-12-17 Thread Frederic Da Vitoria
Form1.FormInit (Sender: TObject); begin DisplayForm ; end; procedure TForm1.btn_NewClick(Sender: TObject); begin DisplayForm ; end; begin b_Lines := 3 ; b_Columns := 4 ; end. -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Frederic Da Vitoria
2013/11/13 Sven Barth > Am 13.11.2013 11:07, schrieb Frederic Da Vitoria: > > 2013/11/13 Rainer Stratmann > >> On Wednesday 13 November 2013 10:52:23 you wrote: >> > 2013/11/13 Rainer Stratmann >> > > Is there a description of the behaviour of const

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Frederic Da Vitoria
7;s probably how Move is written: in assembly language. Of course, since the types were not given in the parameter declaration of Move, the compiler can't know the size of the data, and you have to give the compiler some indication. That's what "count" is for. Move considers the

Re: [fpc-pascal] Move with pointers to memory

2013-11-13 Thread Frederic Da Vitoria
it is declared as "const" "dest" is where the data is copied to, so the procedure will necessarily modify it (if "count" is <> 0), and the procedure should modify so it is declared as "var". Actually, IMO it could be declared as "out", t

Re: [fpc-pascal] private type and type compatibility

2013-10-31 Thread Frederic Da Vitoria
2013/10/31 Sven Barth > Am 31.10.2013 14:42, schrieb Frederic Da Vitoria: > > 2013/10/31 Sven Barth > >> Am 31.10.2013 12:38, schrieb Frederic Da Vitoria: >> >> 2013/10/31 Sven Barth >> >>> Am 31.10.2013 02:45, schrieb Xiangrong Fang: >>

Re: [fpc-pascal] private type and type compatibility

2013-10-31 Thread Frederic Da Vitoria
2013/10/31 waldo kitty > On 10/31/2013 7:38 AM, Frederic Da Vitoria wrote: > >> But is this really good? Doesn't this contradict the Pascal >> philosophy? Borland did a few questionable things (look at how you used >> the >> semicolons in you examples above

Re: [fpc-pascal] private type and type compatibility

2013-10-31 Thread Frederic Da Vitoria
2013/10/31 Sven Barth > Am 31.10.2013 12:38, schrieb Frederic Da Vitoria: > > 2013/10/31 Sven Barth > >> Am 31.10.2013 02:45, schrieb Xiangrong Fang: >> >> 2013/10/30 Jonas Maebe >> >>> >>> This is not equivalent. A private type de

Re: [fpc-pascal] private type and type compatibility

2013-10-31 Thread Frederic Da Vitoria
#x27;t be an error here > SomeTest.Test; > end. > > === program === > > It's this way at least since Turbo Pascal (though without classes then ;) > ). > Yes, I agree this is the TP/Delphi way, and as such should be kept at least in DELPHI mode. But is this really g

Re: [fpc-pascal] private type and type compatibility

2013-10-30 Thread Frederic Da Vitoria
t; problem to use it. It's of course not exactly the same (tdynarray isn't > declared as private to u1), but at the scope visibility level it is the > same situation as far as I am concerned. > Precisely, shouldn't this trigger an error too? The code s

Re: [fpc-pascal] Re: StrUtils.RomanToInt oddities

2013-09-24 Thread Frederic Da Vitoria
ow the merits of exploring thoroughly the limits of a problem before committing code which could later place you in such a conflicting situation (I am not throwing stones to the developer who committed this function first, I have too often done the same mistake myself) -- Frederic Da Vitoria (da

Re: [fpc-pascal] Re: StrUtils.RomanToInt oddities

2013-09-24 Thread Frederic Da Vitoria
ter years (i.e. > Bart's example of bigger numbers). > In other words, the system of Roman numerals was not fixed; it changed > over time, it was mostly based on conventions that fell short of actual > rules. > You are probably right: see http://www.web40571.clarahos

Re: [fpc-pascal] Re: StrUtils.RomanToInt oddities

2013-09-23 Thread Frederic Da Vitoria
re indeed ambiguous (M) So that we maybe could accept unambiguous invalid combinations, but I don't see how to accept ambiguous ones. -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org

Re: [fpc-pascal] Clone a instance of object

2013-09-23 Thread Frederic Da Vitoria
still requires you to > write code. > > For the more general case where you can have arrays, classes, interfaces > and whatnot as fields of your object, there is simply no correct way. > Isn't there? Maybe it wouldn't be easy, but IIRC Delphi offers something related to this with TComponents and Streams. This Delphi mechanism I knew worked only for properties, but I found references that there existed a wider mechanism in D2010. -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Clone a instance of object

2013-09-23 Thread Frederic Da Vitoria
t;a,b,c: string; > end; > private >F: TMyClassVars; > public >procedure Assign(Source: TPersistent); >property a: string read F.a write F.a; > end; > > procedure TMyClass.Assign(Source: TPersistent); > begin > F:=TMyClass(Source).F; > inhe

Re: [fpc-pascal] Object constructor

2013-09-17 Thread Frederic Da Vitoria
hat you are using TP objects) A little bit below the citation in your first post, you'll find this: "A constructor/destructor pair is required if the object uses virtual methods. The reason is that for an object with virtual methods, some internal housekeeping must be done: this houseke

Re: [fpc-pascal] Breaking Pascal source lines

2013-09-06 Thread Frederic Da Vitoria
lt; < <> <= and <= But your splitter must be able to know when it is inside a string (no splitting) and outside. Which means your splitter should be able to recognize the right quote too and split after it if suitable. -- Frederic Da Vitoria (davitof) Membre de