<p>Am 28.03.2013 18:02 schrieb "Benito van der Zander" <<a href="mailto:benito@benibela.de">benito@benibela.de</a>>:<br>
>><br>
>><br>
>> There was already a discussion some time ago whether we should allow operators like "or=" and such as well and the result was simple: no. I consider this the same here. <br>
><br>
><br>
> But it would be more consistent with +=</p>
<p>Consistency does not necessarily make them desireable.</p>
<p>><br>
><br>
>> You can achieve a similar effect through type helpers in 2.7.1 though: <br>
><br>
> looks cool, but I only have 2.6.2...</p>
<p>Then you'll need to wait until 2.8.0 is released (and no, I don't have an estimate). And even if we'd implement your proposal you'd need to wait for the next major version...</p>
<p>><br>
><br>
>><br>
>><br>
>> type<br>
>> TLongIntHelper = type helper for LongInt<br>
>> procedure Min(aValue: LongInt);<br>
>> end;<br>
>><br>
>> procedure TLongIntHelper.Min(aValue: LongInt);<br>
>> begin<br>
>> Self := Math.Min(Self, aValue);<br>
>> end; <br>
><br>
><br>
> Perhaps that should be defined in the rtl</p>
<p>Some helper could be defined in additional units, but the problem with them is that only one per type can be active at a time (Delphi compatible). My plan is to change this though, but for this I first need to define proper search rules for this...</p>
<p>Regards,<br>
Sven</p>