C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Bringing break/continue with label to C++

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Mon, 6 Jan 2025 20:54:53 +0100
More funny would be ```cpp label1: for (…) { continue label1; for label1 (....) goto label1; ``` -----Ursprüngliche Nachricht----- Von:Oliver Hunt via Std-Proposals <std-proposals_at_[hidden]> Gesendet:Mo 06.01.2025 20:37 Betreff:Re: [std-proposals] Bringing break/continue with label to C++ An:std-proposals_at_[hidden]; CC:Oliver Hunt <oliver_at_[hidden]>; So adopting N3377 (or whichever it is) does not mean C++ compilers would not support ```label: continuable-breakable-statement```, but would mean they would need to support both, and then you could imagine this nonsense: ```cpp label1: for (…) { continue label1; for label1 (....) continue label1; ```

Received on 2025-01-06 19:57:43