Deutsch   English   Français   Italiano  
<v10adm$3to7r$1@raubtier-asyl.eternal-september.org>

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

Path: ...!news.mixmin.net!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++,comp.lang.c
Subject: Re: Threads across programming languages
Date: Thu, 2 May 2024 17:10:47 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <v10adm$3to7r$1@raubtier-asyl.eternal-september.org>
References: <GIL-20240429161553@ram.dialup.fu-berlin.de>
 <v0ogum$1rc5n$1@dont-email.me> <v0ovvl$1ur12$4@dont-email.me>
 <v0p06i$1uq6q$5@dont-email.me>
 <v0shti$2vrco$2@raubtier-asyl.eternal-september.org>
 <v0spsh$31ds4$3@dont-email.me>
 <v0stic$325kv$3@raubtier-asyl.eternal-september.org>
 <v0svtn$32o8h$1@dont-email.me>
 <v0t091$32qj6$1@raubtier-asyl.eternal-september.org>
 <v0u90h$3c1r5$4@dont-email.me>
 <v0v28q$3ku1r$1@raubtier-asyl.eternal-september.org>
 <v105sc$3skqi$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 02 May 2024 17:10:47 +0200 (CEST)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="fc01b5cced46b9bd2db0b176923fffe4";
	logging-data="4120827"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/9+ed4VX8eXu6cMOYx8S7MA2BnzOxA654="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1vk1vM6pGJYexr/EgM2T8GXoBqU=
In-Reply-To: <v105sc$3skqi$1@dont-email.me>
Content-Language: de-DE
Bytes: 2218

Am 02.05.2024 um 15:53 schrieb David Brown:

> That is a /long/ way from treating functions as first-class objects.

A C-style function is also a function-object in C++ because it has
a calling operator.

> But it is certainly a step in that direction, as are lambdas.

Lambdas can be assigned to function<>-object to make them runtime
-polymorphic. Otherwise they can be generic types, which are compile
-time polymorphic - like the function-object for std::sort();

> You also claimed that classes are first-class objects in C++.

I never said that and having sth. like class Class in Java is
beyond C++'s performance constraints.