Re: [Lazarus] "lcl: less with-blocks for FPC 3.1.1"

2015-11-11 Thread Michael Van Canneyt



On Wed, 11 Nov 2015, Marcos Douglas wrote:


Hi,

Many changes using this comment (in the subject) was made in LCL SVN,
changing the 'with' sintaxe to use a variable instead... why?

Please, I would like to know if something will change in the new
compiler version using the 'with' sintaxe.


Nothing will change for with. 
But TRect may receive methods, and this may lead to hard-to-catch errors.


Mattias did this for safety.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] "lcl: less with-blocks for FPC 3.1.1"

2015-11-11 Thread Marcos Douglas
On Wed, Nov 11, 2015 at 4:01 PM, Michael Van Canneyt
 wrote:
> Nothing will change for with. But TRect may receive methods, and this may
> lead to hard-to-catch errors.
>
> Mattias did this for safety.

Thank you, Michael.


Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] "lcl: less with-blocks for FPC 3.1.1"

2015-11-11 Thread Sven Barth
Am 11.11.2015 18:58 schrieb "Marcos Douglas" :
>
> Hi,
>
> Many changes using this comment (in the subject) was made in LCL SVN,
> changing the 'with' sintaxe to use a variable instead... why?
>
> Please, I would like to know if something will change in the new
> compiler version using the 'with' sintaxe.
>
>
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/interfaces/carbon/carbonthemes.pas?root=lazarus=50303=50302=50303

For more details see the "Extending TRect breaks Lazarus" thread :)

Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] "lcl: less with-blocks for FPC 3.1.1"

2015-11-11 Thread Marcos Douglas
On Wed, Nov 11, 2015 at 5:03 PM, Sven Barth  wrote:
> Am 11.11.2015 18:58 schrieb "Marcos Douglas" :
>>
>> Hi,
>>
>> Many changes using this comment (in the subject) was made in LCL SVN,
>> changing the 'with' sintaxe to use a variable instead... why?
>>
>> Please, I would like to know if something will change in the new
>> compiler version using the 'with' sintaxe.
>>
>>
>> http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/interfaces/carbon/carbonthemes.pas?root=lazarus=50303=50302=50303
>
> For more details see the "Extending TRect breaks Lazarus" thread :)

:P

Yeah, I saw later. :)

Thanks,
Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus