Deutsch English Français Italiano |
<v3o7jr$ki9u$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: bart <bc@freeuk.com> Newsgroups: comp.lang.c Subject: Re: Interval Comparisons Date: Wed, 5 Jun 2024 00:22:36 +0100 Organization: A noiseless patient Spider Lines: 15 Message-ID: <v3o7jr$ki9u$1@dont-email.me> References: <v3merq$b1uj$1@dont-email.me> <pan$63fde$3c88716e$c61af1ee$d0a27c97@invalid.invalid> <v3o706$kfrm$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 05 Jun 2024 01:22:35 +0200 (CEST) Injection-Info: dont-email.me; posting-host="909035f5e7ec8bde29f1c655af0422db"; logging-data="674110"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PK3oGc0wS/W4jLoa1lJuL" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:eMbrAOLp6hzFu8XkHo0Hk/8M1kc= In-Reply-To: <v3o706$kfrm$2@dont-email.me> Content-Language: en-GB Bytes: 1565 On 05/06/2024 00:12, Lawrence D'Oliveiro wrote: > On Tue, 4 Jun 2024 11:41:54 -0000 (UTC), Blue-Maned_Hawk wrote: > >> i think that we need not worsen the matter with new ternary operators. > > These are not ternary operators. So what are they? I've implemented them several times, and found they really need to be treated as a special kind of n-ary opterator. An AST node for A+B say would have single operator "+", and two operands. One for "A<=B<=C" would have two operators "<=" and "<", and three operands.