Re: [fpc-pascal] Help translating C++ to Object Pascal

2010-09-14 Thread Graeme Geldenhuys
Thanks to all that replied. My C/C++ is a bit rusty. :) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists

Re: [fpc-pascal] Help translating C++ to Object Pascal

2010-09-14 Thread Sven Barth
Am 14.09.2010 11:50, schrieb Graeme Geldenhuys: Hi, In a C++ method as shown below, does the '... return True;' immediately exit the HandleClientMessage method, or will it still continue processing the remainder of the method (just exiting the current code block)? -

Re: [fpc-pascal] Interface with NASM

2010-09-14 Thread Matthias K.
Hi, I've played around with your code and didn't get usefull results either at first glance. Instead of putting the printc test into driver, I've wrote a pure pascal unit which does the same as your test.asm, compiled it, disassembled it and modfied the nasm program. That worked. I'm on a differen

Re: [fpc-pascal] Basics of profiling -- some comments on fpprofiler bugs

2010-09-14 Thread Darius Blaszyk
On Mon, 2010-09-06 at 16:58 +0300, Žilvinas Ledas wrote: > 3) in "procedure TPasTokenList.SaveToFile(const AFileName: string);" > no > need for writeLN's - writes are enough; Fixed in rev2492 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Help translating C++ to Object Pascal

2010-09-14 Thread Graeme Geldenhuys
Hi, In a C++ method as shown below, does the '... return True;' immediately exit the HandleClientMessage method, or will it still continue processing the remainder of the method (just exiting the current code block)? int OXMainFrame::HandleClientMessage(XClientMe

[fpc-pascal] Re: Nesting

2010-09-14 Thread leledumbo
I sometimes use that kind of Exit because it's cheaper in code, though it makes the code flow less structured. Probably because C family bad coding doctrine (my university is a C family slave). But when I'm in full consciousness, I use if/else. -- View this message in context: http://free-pascal

Re: [fpc-pascal] Question mark?

2010-09-14 Thread Felipe Monteiro de Carvalho
Does it work without {$ Codepage UTF8} ? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] heap size & free heap

2010-09-14 Thread Juha Manninen (gmail)
Hi Maybe someone here knows... I built Lazarus with "-gh", started it and closed without doing anything else. --- Heap dump by heaptrc unit 717866 memory blocks allocated : 81646458/83984784 717866 memory blocks freed : 81646458/83984784 0 unfreed memory blocks : 0 True heap size : 851968 T

Re: [fpc-pascal] Help translating C++ to Object Pascal

2010-09-14 Thread David W Noon
On Tue, 14 Sep 2010 11:50:31 +0200, Graeme Geldenhuys wrote about [fpc-pascal] Help translating C++ to Object Pascal: > In a C++ method as shown below, does the '... return True;' > immediately exit the HandleClientMessage method, or will it still > continue processing the remainder of the method

Re: [fpc-pascal] Help translating C++ to Object Pascal

2010-09-14 Thread Reimar Grabowski
On Tue, 14 Sep 2010 11:50:31 +0200 Graeme Geldenhuys wrote: > Hi, > > In a C++ method as shown below, does the '... return True;' immediately > exit the HandleClientMessage method Yes. R. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad

Re: [fpc-pascal] Basics of profiling -- some comments on fpprofiler bugs

2010-09-14 Thread Darius Blaszyk
On Mon, 2010-09-06 at 16:58 +0300, Žilvinas Ledas wrote: > On 2010-09-06 15:48, Darius Blaszyk wrote: > > On Mon, 2010-09-06 at 13:01 +0200, Graeme Geldenhuys wrote: > >> Recently I took a look at Darius's old project 'fpprofiler. Links > >> below. It was over 2 years since anybody worked on it, a

[fpc-pascal] Interface with NASM

2010-09-14 Thread leledumbo
I need to teach assembler, and the easiest way would be to create a driver and simple I/O library in high level language that can be called from assembler so that students can focus in programming with assembler more than dealing with system specific features. It's been quite a while since I go do

Re: [fpc-pascal] Nesting

2010-09-14 Thread Luiz Americo Pereira Camara
Juha Manninen (gmail) escreveu: A new Lazarus review : http://delphimax.wordpress.com/2010/09/13/freepascal-and-lazarus-success-or- failure/ has this comment about Lazarus source: --- Abundant use of the Exit() command instead of nesting code in If/then/else. It has been proven (last time in De