Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <vanbjb$3gi6u$1@raubtier-asyl.eternal-september.org>
Deutsch   English   Français   Italiano  
<vanbjb$3gi6u$1@raubtier-asyl.eternal-september.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita Montero <Bonita.Montero@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: Top 10 most common hard skills listed on resumes...
Date: Wed, 28 Aug 2024 16:18:21 +0200
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <vanbjb$3gi6u$1@raubtier-asyl.eternal-september.org>
References: <vab101$3er$1@reader1.panix.com>
 <vad7ns$1g27b$1@raubtier-asyl.eternal-september.org>
 <vad8lr$1fv5u$1@dont-email.me> <vaf7f0$k51$2@reader1.panix.com>
 <vafgb2$1to4v$2@dont-email.me>
 <vafkdk$1ut4h$2@raubtier-asyl.eternal-september.org>
 <20240825192810.0000672c@yahoo.com>
 <vafs6u$21ofd$1@raubtier-asyl.eternal-september.org>
 <20240825220016.00002793@yahoo.com> <86bk1e4y7t.fsf@linuxsc.com>
 <vajn50$2rqra$2@raubtier-asyl.eternal-september.org>
 <vajnha$2rtl3$1@dont-email.me>
 <vajns4$2rvg8$1@raubtier-asyl.eternal-september.org>
 <vajspc$2so1b$1@dont-email.me>
 <vajtdo$2ssc8$1@raubtier-asyl.eternal-september.org>
 <valodj$35rt8$7@dont-email.me>
 <vamarr$3btll$1@raubtier-asyl.eternal-september.org>
 <van0h7$3eqvr$1@dont-email.me>
 <van1sb$3f45o$1@raubtier-asyl.eternal-september.org>
 <van2ok$3f3q8$1@dont-email.me>
 <van6td$3frfe$1@raubtier-asyl.eternal-september.org>
 <van934$3g2ip$1@dont-email.me>
 <van9kt$3g7l8$1@raubtier-asyl.eternal-september.org>
 <vana36$3g9qu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Aug 2024 16:18:20 +0200 (CEST)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="533d64590f09fbd7a1b41b803c3065f2";
	logging-data="3688670"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+01YTGmQfqShQVp+Avjsn/8qAYjbmLZUs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fSP848jA5CXKvEj0xD+ggDUSPHs=
Content-Language: de-DE
In-Reply-To: <vana36$3g9qu$1@dont-email.me>
Bytes: 3695

Am 28.08.2024 um 15:52 schrieb Thiago Adams:

> You have to deallocate only if the ownership still with the same object.
> This is not the case when the object is moved.

If the compiler sees that it is moved the whole deallocation
is usually opimized away for the non-exception code path.

> To create view object you need a new object because destructor cannot be 
> disabled.

It's optimized away for the non-exception code-path if the compiler
sees it.


>> Const-objects are there not to be modified. If you've got logical
>> constness you can cast away the const with const_cast and move its
>> contents. But casting away const is unclean mostly in C and C++.

> excuses..

In C yoU'd have to do the same. And there's only one type of cast
and you could mistakenly cast to a non-fitting type whereas in C++
you've got const_cast<> which may only differ in const-ness.

> It was create latter after people realize std::string was bad.

> The same for std::array etc... almost everything is a fix in C++.

Array is there to have iterator-debugging on sth. that looks like
a C-array. With C-arrays there's no such feature and it's harder
to find according bugs. If I use static const C-style arrays which
are directed to the DATA-ssegment I always use a span<> on it to
have iterator-debugging, whereas in C you have to take a lot of
care.

> (I don't blame people creating C++ in the past, but I think now we have 
> information sufficient to do better choices and this choices are not 
> begin made).

C is five to ten times more code for the same task.