<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr">Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>> schrieb am Mi., 20. Juni 2018, 17:41:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Jun 20, 2018, at 10:02 PM, Michael Van Canneyt <<a href="mailto:michael@freepascal.org" target="_blank" rel="noreferrer">michael@freepascal.org</a>> wrote:<br>
> <br>
> Because it is a simple textual token replacement at present. Supporting arguments would mean parsing the macro, parsing whatever comes after it, matching the arguments etc. A whole added layer of complexity.<br>
<br>
It’s like a simplified regular expression. Capture anything inside () on the left side and replace occurrences on the right side.<br>
<br>
{$define hello(me) := writeln(‘hello me')}<br>
<br>
hello(world) becomes writeln(‘hello world’)<br></blockquote></div><div dir="auto"><br></div><div dir="auto">In Pascal you'd use inline functions for this one though of course with strong typing and not some identifier that both a human and the IDE will have to guess what it is. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div>