<html><head></head><body><div class="ydp36efb61fyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><div dir="ltr" data-setdir="false">Of course precedence of the operator also must be informed by the operator author to the compiler in some ways. Operator has different purpose and workflow from function/method. If not, then everything can be just a method, no operator needed.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">However, if this is not practically possible in FPC, it’s all right then.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank you.</div><div><br></div><div class="ydp36efb61fsignature"><div style="font-family:Helvetica, Arial, sans-serif;font-size:16px;"><div dir="ltr"><br></div>–Mr Bee<div><br></div></div></div></div>
        <div><br></div><div><br></div>
        
        </div><div id="yahoo_quoted_1278723268" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    Pada Minggu, 2 Februari 2020 08.32.23 WIB, Sven Barth via fpc-pascal <fpc-pascal@lists.freepascal.org> menulis:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv4687954057"><div><div><div><div class="yiv4687954057gmail_quote"><div class="yiv4687954057gmail_attr" dir="ltr">Mr Bee via fpc-pascal <<a rel="nofollow" shape="rect" ymailto="mailto:fpc-pascal@lists.freepascal.org" target="_blank" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am So., 2. Feb. 2020, 02:11:<br clear="none"></div><blockquote class="yiv4687954057gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><div dir="ltr">Hi all,</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Besides overloading available operators, could we make our own custom operator(s) in FPC?</div><div dir="ltr"><br clear="none"></div><div dir="ltr">For example, I want to use ∑ to sum array values? Also other Unicode characters such as ≥, ≤, ±, ≠, etc as custom operators? I think such feature is important in this unicode era.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Is it possible?</div></div></div></div></blockquote></div></div><div><br clear="none"></div><div>No, it is not (okay, technically, in theory it would be possible, but definitely not desired). The compiler would need to know such operators so that it can determine the precedence. You can just as well use methods/functions for that with the added benefit that they can be named in a way that explains their purpose. </div><div class="yiv4687954057yqt7996335764" id="yiv4687954057yqtfd61565"><div><br clear="none"></div><div>Regards, </div></div><div>Sven </div><div class="yiv4687954057yqt7996335764" id="yiv4687954057yqtfd88761"><div><div class="yiv4687954057gmail_quote"><blockquote class="yiv4687954057gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
</blockquote></div></div></div></div></div></div><div class="yqt7996335764" id="yqtfd89445">_______________________________________________<br clear="none">fpc-pascal maillist  -  <a shape="rect" ymailto="mailto:fpc-pascal@lists.freepascal.org" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br clear="none"><a shape="rect" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br clear="none"></div></div>
            </div>
        </div></body></html>