Re: [Lazarus] Unicode branch

2013-06-29 Thread waldo kitty
On 6/29/2013 14:51, Marco van de Voort wrote: On Sat, Jun 29, 2013 at 12:14:35AM +0200, Hans-Peter Diettrich wrote: There won't be any exact Delphi like implementation, because like with interfaces it isn't documented _when exactly_ the reference count is decreased. It is decreased whenever a

[Lazarus] When TException is distroyed?

2013-06-29 Thread William Oliveira Ferreira
Just a curiosity question: if we use try exception, the system auto create a texception object, but, when it is destroyed? _ William de Oliveira Ferreira -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal

Re: [Lazarus] Unicode branch

2013-06-29 Thread Marcos Douglas
On Fri, Jun 28, 2013 at 1:07 PM, Hans-Peter Diettrich wrote: > Graeme Geldenhuys schrieb: > >> On 2013-06-27 21:32, Hans-Peter Diettrich wrote: >>> >>> I don't see how this is related to managed objects. >> >> >> If FPC implements managed objects, is it going to behave _exactly_ like >> Delphi, or

Re: [Lazarus] try finally exit

2013-06-29 Thread Eric Kom
On 29/06/2013 19:58, Michael Van Canneyt wrote: On Sat, 29 Jun 2013, Benito van der Zander wrote: It supposed to be there already: http://bugs.freepascal.org/view.php?id=21711 I extended that with an explicit example, and added a description in the reference documentation for Exit. Tha

Re: [Lazarus] Unicode branch

2013-06-29 Thread Marco van de Voort
On Sat, Jun 29, 2013 at 12:14:35AM +0200, Hans-Peter Diettrich wrote: > > There won't be any exact Delphi like implementation, because like with > > interfaces it isn't documented _when exactly_ the reference count is > > decreased. > > It is decreased whenever a reference expires. Where do you

Re: [Lazarus] try finally exit

2013-06-29 Thread Michael Van Canneyt
On Sat, 29 Jun 2013, Benito van der Zander wrote: It supposed to be there already: http://bugs.freepascal.org/view.php?id=21711 I extended that with an explicit example, and added a description in the reference documentation for Exit. Michael. --

Re: [Lazarus] Unicode branch

2013-06-29 Thread Sven Barth
On 29.06.2013 00:14, Hans-Peter Diettrich wrote: Sven Barth schrieb: On 28.06.2013 16:49, Graeme Geldenhuys wrote: On 2013-06-27 21:32, Hans-Peter Diettrich wrote: I don't see how this is related to managed objects. If FPC implements managed objects, is it going to behave _exactly_ like Delp

Re: [Lazarus] try finally exit

2013-06-29 Thread Benito van der Zander
It supposed to be there already: http://bugs.freepascal.org/view.php?id=21711 On 06/29/2013 03:01 PM, Mattias Gaertner wrote: On Sat, 29 Jun 2013 14:46:26 +0200 Jürgen Hestermann wrote: Am 2013-06-29 14:27, schrieb Mattias Gaertner: > The language syntax is not described in the wiki. It is

Re: [Lazarus] try finally exit

2013-06-29 Thread Hans-Peter Diettrich
Ludo Brands schrieb: As an example consider the following routine: Procedure Doit (Name : string); Var F : Text; begin Try Assign (F,Name); Rewrite (name); ... File handling ... Finally Close(F); end; That's a questionable example. Which of the actions are required for

Re: [Lazarus] try finally exit

2013-06-29 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: The language syntax is not described in the wiki. It is available as pdf and html. Right, but the syntax description does not (always) answer questions about *semantics*. DoDi -- ___ Lazarus mailing list Lazarus@lists.l

Re: [Lazarus] try finally exit

2013-06-29 Thread Jürgen Hestermann
Am 2013-06-29 15:01, schrieb Ludo Brands: > In case that is all too difficult and moaning on the ML is the preferred > way of getting information, here is the contents: Be aware that not *I* asked the question about exit and try..finaly. I am just complaining about the useless answers saying that

Re: [Lazarus] try finally exit

2013-06-29 Thread Mattias Gaertner
On Sat, 29 Jun 2013 14:46:26 +0200 Jürgen Hestermann wrote: > Am 2013-06-29 14:27, schrieb Mattias Gaertner: > > The language syntax is not described in the wiki. It is available as pdf > and html. > > You mean this: http://www.freepascal.org/docs-html/rtl/system/exit.html ? Yes, that would b

Re: [Lazarus] try finally exit

2013-06-29 Thread Ludo Brands
On 06/29/2013 12:55 PM, Jürgen Hestermann wrote: > > Is that the way programming is done today: "There is no documentation, > just figure it out yourself"? > I can't believe it. > How can the programmer be sure that test results apply under all > circumstances? > Does he have to write test routin

Re: [Lazarus] try finally exit

2013-06-29 Thread Jürgen Hestermann
Am 2013-06-29 14:27, schrieb Mattias Gaertner: > The language syntax is not described in the wiki. It is available as pdf and html. You mean this: http://www.freepascal.org/docs-html/rtl/system/exit.html ? How does this answer the question of this thread? It says: Exit exits the current subrout

Re: [Lazarus] try finally exit

2013-06-29 Thread Mattias Gaertner
On Sat, 29 Jun 2013 14:12:04 +0200 Hans-Peter Diettrich wrote: > Jürgen Hestermann schrieb: > > Am 2013-06-28 22:34, schrieb Bart: > > > On 6/28/13, Junior wrote: > > >> strList.TStringList.Create; > > >> try > > >>if Pos('blablabla',strList.Text) = 0 then > > >> Exit; > > >> fina

Re: [Lazarus] try finally exit

2013-06-29 Thread Hans-Peter Diettrich
Jürgen Hestermann schrieb: Am 2013-06-28 22:34, schrieb Bart: > On 6/28/13, Junior wrote: >> strList.TStringList.Create; >> try >>if Pos('blablabla',strList.Text) = 0 then >> Exit; >> finally >> strList.Free; >> end; >> Adding "Exit", the finally is executed? > Just wonder

Re: [Lazarus] try finally exit

2013-06-29 Thread Jürgen Hestermann
Am 2013-06-28 22:34, schrieb Bart: > On 6/28/13, Junior wrote: >> strList.TStringList.Create; >> try >>if Pos('blablabla',strList.Text) = 0 then >> Exit; >> finally >> strList.Free; >> end; >> Adding "Exit", the finally is executed? > Just wondering. Why couldn't you test that yourse

Re: [Lazarus] try finally exit

2013-06-29 Thread Hans-Peter Diettrich
Junior schrieb: this code was just one example, I have of putting all the code for ask this? Em 28-06-2013 20:52, John Meyer escreveu: pray tell what does using a production machine have to do with testing a trivial section of code? Junior wrote: because I use a production machine [...] Fo

Re: [Lazarus] External SigFPE

2013-06-29 Thread Martin
On 29/06/2013 07:08, Ludo Brands wrote: 8087 style exceptions are raised on the next floating point instruction for speed optimization. If you want to raise the exception on the correct location you should insert an fwait opcode after every floating point operation which is very expensive. See w

Re: [Lazarus] try finally exit

2013-06-29 Thread Junior
this code was just one example, I have of putting all the code for ask this? Em 28-06-2013 20:52, John Meyer escreveu: pray tell what does using a production machine have to do with testing a trivial section of code? Junior wrote: because I use a production machine plese be patiente! Em 28-

Re: [Lazarus] try finally exit

2013-06-29 Thread Junior
good idea, thank Em 28-06-2013 21:44, Antônio escreveu: try if true then exit; finally showmessage(''); end; Antônio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/la