Just a fun discovery, I didn't know/remember that spaces are valid between "." and fields: Get link Facebook X Pinterest Email Other Apps - February 28, 2015 Just a fun discovery, I didn't know/remember that spaces are valid between "." and fields:Button1. Caption := 'Hello'; Get link Facebook X Pinterest Email Other Apps Comments Dan Statham (GreatDayDan)February 28, 2015 at 2:45 AMYep. I've noticed that too.ReplyDeleteRepliesReplyMahdi SafsafiFebruary 28, 2015 at 2:59 AMEven more ,this one is still valid !//------------------------Button1.Caption:='Hello';//----------------------ReplyDeleteRepliesReplyDorin DuminicaFebruary 28, 2015 at 3:53 AMwhitespace(space, tabs, line breaks) is usually ignoredReplyDeleteRepliesReplyMartin WienoldFebruary 28, 2015 at 5:58 AMI leaverage this when writing unit tests with Mocks.fComponent.Setup .WillExecute .Once .WhenCalling .Click();ReplyDeleteRepliesReplyRichard BaroniunasFebruary 28, 2015 at 6:54 AMGreat way to mess up a maintenance team.ReplyDeleteRepliesReplyAnthony FrazierFebruary 28, 2015 at 11:23 AMThat feature of the parser is the only thing that makes Fluent interfaces sane.ReplyDeleteRepliesReplyPatrick HughesFebruary 28, 2015 at 12:07 PMHow about:with button. dobegincaption := "Hello";width := 125;height := 24;end; ;-)ReplyDeleteRepliesReplyRubén CorrederaFebruary 28, 2015 at 12:25 PMI did not know either. :)ReplyDeleteRepliesReplyRichard StevensMarch 1, 2015 at 10:35 AM"Yeah... but you can't do that.""Why not?""Because it's freakin' me out."https://www.youtube.com/watch?v=vVX-PrBRtTYReplyDeleteRepliesReplyAlexander BenikowskiMarch 4, 2015 at 3:56 AMThanks for the tip. Never tried it, but it sounds quite plausible from a parsers point of view. Now mixing this with RightToLeft-Override and some more strange unicode stuff...oh i can hear them scream XDReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
Yep. I've noticed that too.
ReplyDeleteEven more ,this one is still valid !
ReplyDelete//------------------------
Button1
.
Caption
:=
'Hello'
;
//----------------------
whitespace(space, tabs, line breaks) is usually ignored
ReplyDeleteI leaverage this when writing unit tests with Mocks.
ReplyDeletefComponent.Setup
.WillExecute
.Once
.WhenCalling
.Click();
Great way to mess up a maintenance team.
ReplyDeleteThat feature of the parser is the only thing that makes Fluent interfaces sane.
ReplyDeleteHow about:
ReplyDeletewith button. do
begin
caption := "Hello";
width := 125;
height := 24;
end;
;-)
I did not know either. :)
ReplyDelete"Yeah... but you can't do that."
ReplyDelete"Why not?"
"Because it's freakin' me out."
https://www.youtube.com/watch?v=vVX-PrBRtTY
Thanks for the tip. Never tried it, but it sounds quite plausible from a parsers point of view. Now mixing this with RightToLeft-Override and some more strange unicode stuff...oh i can hear them scream XD
ReplyDelete