Mike Torrettinni 198 Posted May 5, 2020 I noticed this function in gnugettext: function _(const szMsgId: MsgIdString): TranslatedUnicodeString; It seems you can name the methods with just underscore, or even multiple of them: procedure _; procedure ______; Is there any situation when this might trigger some unexpected issues? Wow, Delphi world 🙂 Share this post Link to post
Anders Melander 1782 Posted May 5, 2020 19 minutes ago, Mike Torrettinni said: Is there any situation when this might trigger some unexpected issues? No. 1 Share this post Link to post
David Heffernan 2345 Posted May 5, 2020 Why do you feel that there might be a problem? The rules for identifiers are well documented. These all meet the rules. Share this post Link to post
Vandrovnik 214 Posted May 5, 2020 (edited) 2 hours ago, Mike Torrettinni said: Is there any situation when this might trigger some unexpected issues? With this info in mind, for bad customers you can start programming like that: const _ = 1; _____ = 2; x = _____ + (_-_-_) + 0 + _+0-0+_ ; Edited May 5, 2020 by Vandrovnik 1 10 Share this post Link to post
dummzeuch 1505 Posted May 5, 2020 (edited) We have Delphi, we don't need no fchking brainf*ck or whitespace. x=3 Edited May 5, 2020 by dummzeuch Share this post Link to post
Rollo62 536 Posted May 6, 2020 16 hours ago, Vandrovnik said: With this info in mind, for bad customers you can start programming like that: const _ = 1; _____ = 2; x = _____ + (_-_-_) + 0 + _+0-0+_ ; Who said that Delphi couldn't look like C++ 1 Share this post Link to post
Guest Posted May 6, 2020 18 hours ago, dummzeuch said: We have Delphi, we don't need no fchking brainf*ck or whitespace. Never saw Brainfuck. Methinks it's kinda cool. Take Neil Stephenson's Diamond Age and you should be able to express the princess educational story's in Brainfuck. At least the ones with the mice and the chain. Also, we could introduce another variable naming conv; if an identifier start with _, the values assigned to it will be multiplied with the number of _ before the first non _ character. Then the code snippet above would yield something other than 0. Let's stop here. Share this post Link to post
aehimself 396 Posted May 7, 2020 On 5/5/2020 at 11:39 PM, dummzeuch said: we don't need no fchking brainf*ck or whitespace. Came just to say it reminds me of BrainF*ck. You were faster though 🙂 Share this post Link to post