Re: [fpc-pascal] Inline methods

2016-05-23 Thread Sven Barth
Am 23.05.2016 11:37 schrieb "LacaK" : > > Dňa 20.5.2016 o 14:42 Sven Barth napísal(a): > >> >> Am 19.05.2016 08:52 schrieb "LacaK" >: >> > >> > >> >> >> >> >> Additionally, it's possible that it's not possible to inline generic routines in regular routines, >> >> > >> >> > It is not my case. >> >>

Re: [fpc-pascal] Inline methods

2016-05-23 Thread LacaK
Dňa 20.5.2016 o 14:42 Sven Barth napísal(a): Am 19.05.2016 08:52 schrieb "LacaK" >: > > >> >> >> Additionally, it's possible that it's not possible to inline generic routines in regular routines, >> > >> > It is not my case. >> > I use this generic in another generic a

Re: [fpc-pascal] Inline methods

2016-05-20 Thread Sven Barth
Am 19.05.2016 08:52 schrieb "LacaK" : > > >> >> >> Additionally, it's possible that it's not possible to inline generic routines in regular routines, >> > >> > It is not my case. >> > I use this generic in another generic and then it is specialized in interface section of same unit. >> > >> > Later

Re: [fpc-pascal] Inline methods

2016-05-19 Thread LacaK
Yes, I have used "Clean and build" option. May be that this diagnostic messages are not shown in "Messages" window. (because when I compile from command line I see also other lines, which are not shown in Lazarus) Right click on Messages window / Filter... Very nice! (I was not aware of such

Re: [fpc-pascal] Inline methods

2016-05-19 Thread Mattias Gaertner
On Thu, 19 May 2016 08:49:04 +0200 LacaK wrote: > > >> Hm, I have checked in Lazarus on Project Options / Verbosity appropriate > >> -vd option, but in output window I do not see any more info ... > >> How should look such info message ? > > Did you build your project clean? > Yes, I have used "

Re: [fpc-pascal] Inline methods

2016-05-18 Thread LacaK
>> Additionally, it's possible that it's not possible to inline generic routines in regular routines, > > It is not my case. > I use this generic in another generic and then it is specialized in interface section of same unit. > > Later this specialized object is used in another class type,

Re: [fpc-pascal] Inline methods

2016-05-18 Thread LacaK
Hm, I have checked in Lazarus on Project Options / Verbosity appropriate -vd option, but in output window I do not see any more info ... How should look such info message ? Did you build your project clean? Yes, I have used "Clean and build" option. May be that this diagnostic messages are not

Re: [fpc-pascal] Inline methods

2016-05-18 Thread Sven Barth
Am 18.05.2016 14:43 schrieb "LacaK" : >> Additionally, it's possible that it's not possible to inline generic routines in regular routines, > > It is not my case. > I use this generic in another generic and then it is specialized in interface section of same unit. > > Later this specialized object

Re: [fpc-pascal] Inline methods

2016-05-18 Thread Sven Barth
Am 18.05.2016 15:13 schrieb "Marco van de Voort" : > > In our previous episode, Sven Barth said: > > Yes, that might indeed be the most probable cause. That's something that I > > still need to fix in trunk, cause I really want inlining to work with > > generic functions (with generic records and c

Re: [fpc-pascal] Inline methods

2016-05-18 Thread Mattias Gaertner
On Wed, 18 May 2016 14:43:06 +0200 LacaK wrote: > > > > >> Any other ideas, what leads compiler to not inline ? > > > > If you compile with -vd, the compiler will tell you in most cases why > > it's not inlining. > Hm, I have checked in Lazarus on Project Options / Verbosity appropriate > -vd

Re: [fpc-pascal] Inline methods

2016-05-18 Thread Marco van de Voort
In our previous episode, Sven Barth said: > Yes, that might indeed be the most probable cause. That's something that I > still need to fix in trunk, cause I really want inlining to work with > generic functions (with generic records and classes it should work if the > specialization was done in the

Re: [fpc-pascal] Inline methods

2016-05-18 Thread LacaK
Any other ideas, what leads compiler to not inline ? If you compile with -vd, the compiler will tell you in most cases why it's not inlining. Hm, I have checked in Lazarus on Project Options / Verbosity appropriate -vd option, but in output window I do not see any more info ... How should

Re: [fpc-pascal] Inline methods

2016-05-18 Thread Sven Barth
Am 18.05.2016 13:29 schrieb "Jonas Maebe" : > > > LacaK wrote on Wed, 18 May 2016: > >> Any other ideas, what leads compiler to not inline ? > > > If you compile with -vd, the compiler will tell you in most cases why it's not inlining. Additionally, it's possible that it's not possible to inline ge

Re: [fpc-pascal] Inline methods

2016-05-18 Thread Jonas Maebe
LacaK wrote on Wed, 18 May 2016: Any other ideas, what leads compiler to not inline ? If you compile with -vd, the compiler will tell you in most cases why it's not inlining. Additionally, it's possible that it's not possible to inline generic routines in regular routines, because IIRC th

Re: [fpc-pascal] Inline methods

2016-05-18 Thread LacaK
In my case it is not virtual method. But I forgot to mention, that it is method of generic object: generic T2DArray = object ... public constructor Init(oobMode: TOutOfBoundsMode); overload; constructor Init(x,y: integer); overload; ... function Data(x,y: integ

Re: [fpc-pascal] Inline methods

2016-05-18 Thread Michael Van Canneyt
On Wed, 18 May 2016, LacaK wrote: In my case it is not virtual method. But I forgot to mention, that it is method of generic object: generic T2DArray = object ... public constructor Init(oobMode: TOutOfBoundsMode); overload; constructor Init(x,y: integer); overload; ..

Re: [fpc-pascal] Inline methods

2016-05-18 Thread LacaK
> > is it possible inline also methods of objects (not regular procedures) ? > > I have very simple class method, which call I need inline. > > (looking at assembler code it is not inlined; I have looked also in documentation, but I do not found article about inline and methods) > > > > Examp

Re: [fpc-pascal] Inline methods

2016-05-18 Thread Mark Morgan Lloyd
LacaK wrote: Hi *, is it possible inline also methods of objects (not regular procedures) ? I have very simple class method, which call I need inline. (looking at assembler code it is not inlined; I have looked also in documentation, but I do not found article about inline and methods) Example

Re: [fpc-pascal] Inline methods

2016-05-18 Thread Sven Barth
Am 18.05.2016 11:07 schrieb "Sven Barth" : > > Am 18.05.2016 10:06 schrieb "LacaK" : > > > > Hi *, > > is it possible inline also methods of objects (not regular procedures) ? > > I have very simple class method, which call I need inline. > > (looking at assembler code it is not inlined; I have loo

Re: [fpc-pascal] Inline methods

2016-05-18 Thread Sven Barth
Am 18.05.2016 10:06 schrieb "LacaK" : > > Hi *, > is it possible inline also methods of objects (not regular procedures) ? > I have very simple class method, which call I need inline. > (looking at assembler code it is not inlined; I have looked also in documentation, but I do not found article abo