Article View: comp.lang.c
Article #56Re: will it be optimized?
From: fir
Date: Thu, 08 Oct 2026 06:34
Date: Thu, 08 Oct 2026 06:34
72 lines
3307 bytes
3307 bytes
fir pisze:
> bart pisze:
>> On 07/10/2026 13:45, fir wrote:
>>
>>> really c should have that
>>> 1) references like in c++
>>> 2) adhoc damn enums /tags
>>> 3) builtin operators for float3 type
>>
>> That last is a very specific type for C.
>>
>> Why not go instead for a more general ability to be able to overload
>> operators for user-defined types?
>>
>> You know, like C++.
>>
>> Or maybe you can just use C++ because it's right there, and you use a
>> C++ compiler anyway.
>
>
> ye operator 'overloading' and references are good concepts.. here above
> iĀ jut mentioned more modest changes that are needed (more specifically
> i mentioned those who anoy me practically when i code this rasterizer,
> and the lack of operators for float3 is heavy pain)
>
>
>
aside the fact that syntax for this operators in c++ are not quite good
imo (where builtin operators for float3 for sure would have proper syntax )
in fact i recently think that function definition syntax in c also may
not be much good..if you got this what i call hipermodularity or fractal
modularity i language then the function not "returns" value but "has a
value"
like
foo()
{
static float x;
static float y;
static float z;
}
which you eventually oculd "cast" (or something other which waork close
way) on different subsets (or maybe even supersets) of its value
printf ("%.1f ", (x) foo()); // call and take x
(x,z) foo(); //call and take x y
(x,x,y) foo(); //call and take x x y
(z,y,x) foo //dont call just take z y x
clasic return hass to narrow usability probably and with this cast you
could just fit result of one function to another
like also
boo ( (2,3 x,y, "sasaS") foo() )
im not sure as to syntax though, as this should be done carefully and
its not clear now
Technical Details
Message-ID:
<11a7dh0$3ifm4$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11a1f4c$1g3sg$1@dont-email.me> <11a4qor$2kj95$1@dont-email.me> <11a50tk$2m3b3$2@dont-email.me> <11a5etj$2saav$1@dont-email.me> <11a5l3q$2urvl$1@dont-email.me> <11a63p7$34vce$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: fir <profesor.fir@gmail.com> Newsgroups: comp.lang.c Subject: Re: will it be optimized? Date: Thu, 8 Oct 2026 08:34:07 +0200 Organization: A noiseless patient Spider Lines: 72 Message-ID: <11a7dh0$3ifm4$1@dont-email.me> References: <11a1f4c$1g3sg$1@dont-email.me> <11a4qor$2kj95$1@dont-email.me> <11a50tk$2m3b3$2@dont-email.me> <11a5etj$2saav$1@dont-email.me> <11a5l3q$2urvl$1@dont-email.me> <11a63p7$34vce$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 08 Oct 2026 06:34:09 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3751620"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DpkOwnH7MlunzIA9iEUM7tS+qsoXo3rs="; posting-host="0be8ec7f9e4f6b6e9583dc75ffe27f14" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0 SeaMonkey/2.53.24 Cancel-Lock: sha1:j7WPkKkqGV/K81eRxHT2ob20U9M= sha256:N86rju0E8YxOESLibcJDdNdfYcYNiPtQ4VaJ5Psrug0= sha1:LAIB3c06SWMTeGmPfi1HH0z3NSk= sha256:66+C7Pq8VTep2MRQqKKt93vEo/jU0Ujb8dslmxGXwsU= In-Reply-To: <11a63p7$34vce$1@dont-email.me>