[Lazarus] Bug in cody. Exploding a hanging with block.

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jun 9 07:52:50 CEST 2014


On Mon, 09 Jun 2014 00:29:28 +0300
ListMember <listmember at letterboxes.org> wrote:

>[...]
> Does that also apply to other forms of 'hanging with blocks'

Yes.

> such as:
> 
> if something then
>    with somethingelse begin
>      {code}
>    end;

No.
You need a 'do'.


> I can say that with some confidence because I have just finished getting 
> rid of ALL 'with's from VirtualTrees.pas in less than half an hour.
 
> And, it is all thanks to cody, because I have been trying (on and off) 
> doing that for the last 6-7 years (became something of an obsession to me).

:)

Mattias




More information about the Lazarus mailing list