Date: Sun, 1 May 2022 08:07:02 +0000
But why should it be so cumbersome, unnecessary, hard-to-read, inconsistent (come on, we have if constexpr, & if consteval) ??
From: Peter C++ via Std-Proposals<mailto:std-proposals_at_[hidden]>
Sent: 01 May 2022 13:05
To: std-proposals_at_[hidden]<mailto:std-proposals_at_[hidden]>
Cc: Peter C++<mailto:peter.cpp_at_[hidden]ad.ch>
Subject: Re: [std-proposals] constexpr loops
just put regular loops it in a consteval function...
sent from a mobile device so please excuse strange words due to autocorrection.
Peter Sommerlad
peter.cpp_at_sommerlad.ch
+41-79-432 23 32
On 1 May 2022, at 09:51, Abdullah Qasim via Std-Proposals <std-proposals_at_[hidden]> wrote:
for constexpr ()
for consteval ()
while constexpr ()
while consteval ()
do constexpr {} while ()
do consteval {} while ()
example:
for consteval (int i{ 0 }; i < 1’000’000; ++i) {
cout << "LOL”;
}
Runtime speed is FAST, w/ these loops.
Easy to implement, too.
--
Std-Proposals mailing list
Std-Proposals_at_lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
From: Peter C++ via Std-Proposals<mailto:std-proposals_at_[hidden]>
Sent: 01 May 2022 13:05
To: std-proposals_at_[hidden]<mailto:std-proposals_at_[hidden]>
Cc: Peter C++<mailto:peter.cpp_at_[hidden]ad.ch>
Subject: Re: [std-proposals] constexpr loops
just put regular loops it in a consteval function...
sent from a mobile device so please excuse strange words due to autocorrection.
Peter Sommerlad
peter.cpp_at_sommerlad.ch
+41-79-432 23 32
On 1 May 2022, at 09:51, Abdullah Qasim via Std-Proposals <std-proposals_at_[hidden]> wrote:
for constexpr ()
for consteval ()
while constexpr ()
while consteval ()
do constexpr {} while ()
do consteval {} while ()
example:
for consteval (int i{ 0 }; i < 1’000’000; ++i) {
cout << "LOL”;
}
Runtime speed is FAST, w/ these loops.
Easy to implement, too.
--
Std-Proposals mailing list
Std-Proposals_at_lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2022-05-01 08:07:05