Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Rainer Weikusat Newsgroups: comp.unix.programmer,comp.lang.c Subject: Re: Odd compiler behaviour? Date: Sun, 13 Mar 2016 22:12:41 +0000 Lines: 25 Message-ID: <874mcajacm.fsf@doppelsaurus.mobileactivedefense.com> References: <20160305152935.13fa72e4c5e160164248c79c@speakeasy.net> <871t7ldt2g.fsf@doppelsaurus.mobileactivedefense.com> <87y49tt2dw.fsf@doppelsaurus.mobileactivedefense.com> <20160309002110.832d5b3b971d250318f72525@speakeasy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net zKXs3c+kBaATUjbQu133XwnsZacKpkENAe6ohTRR1zeZHm190= Cancel-Lock: sha1:1GUW1+6dIv0hp1l+piryVqYwQnE= sha1:rfUASxVTGz2TTMzCRR+YpHQDhQ4= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Xref: csiph.com comp.unix.programmer:8151 comp.lang.c:83822 David Brown writes: > On 12/03/16 10:36, Gordon Burditt wrote: >>>> I have no problem with more operators, I have a problem with them not being >>>> overloaded by programmers in a sensible way. >> >> I have a suggestion to alleviate that problem. I propose making >> all of the Emoji characters in Unicode into C++ (overloadable) >> operators. The initial definition of all of them is to call the >> abort() function (at compile time or run time, implementor's choice). >> You may overload these as desired to do something useful. >> >> According to http://unicode.org/charts/full-emoji-list.html , there >> are 1624 of these, many using two Unicode characters, and lots of >> them are national flags. That should be enough operators for a >> while. Now instead of using + or * for exotic vector operations, >> you can use a Polish flag or a monkey face or a hand with a raised >> middle finger. >> > > There is even an emoticon for undefined behaviour: > > 😤 () The propect of being able to overload undefined behaviour seems very appealing to me :-).