Article View: comp.lang.c
Article #1374Re: p = {1,0,0}
From: bartc
Date: Sat, 07 Nov 2026 22:23
Date: Sat, 07 Nov 2026 22:23
41 lines
2575 bytes
2575 bytes
On 07/11/2026 19:50, fir wrote:
> bartc pisze:
>>>
>>> there is also option
>>>
>>> int rand { rand = rand()}
>>
>> Which means...?
>
> ofc some could also write
>
> int rand() { rand = rand()}
One could also avoid using the same identifier for three different things!
I assume that last 'rand' is calling some external function, but that is
going to be shadowed by at least that first 'rand' and possibly the second.
>
> then its maybe easier to understtod..
No, try it like this first:
int A() {B = C()}
Although that will only fix one puzzle out of many.
> note its not a function rand() that returns int its a module-function
> rand tthat contains/covers int
>
> i moit those empty () for function modules becouse they are not needed like
>
> some {printf("\n elo";) }
'some' seems to be a refugee from your other post. It's not defined here
anyway.
Technical Details
Message-ID:
<11co8d4$3rpvm$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:
<11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me> <11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me> <11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me> <11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me> <11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me> <11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me> <11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me> <11cnve1$3ofei$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: bartc <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: p = {1,0,0}
Date: Sat, 7 Nov 2026 22:23:32 +0000
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <11co8d4$3rpvm$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me>
<11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me>
<11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me>
<11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me>
<11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me>
<11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me>
<11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me>
<11cnve1$3ofei$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 07 Nov 2026 22:23:33 +0000 (UTC)
Injection-Info: dont-email.me;
logging-data="4057078"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WSftdGX7y7SXbctQFyjAA"; posting-host="09299e4ea85b4fbab71928f8203a3426"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:FTvP0TTPPe/R2uslMAzrDmMdBek= sha256:gk92MzhtpKGT0AMgcSb+YuKlc4/8NCZBWSHcqaWNtN8=
sha1:jbS25QWeSUYw6h4BHXf/1MQYW6E= sha256:NVd/nvX5ATKhTa2nNgkpP2YySBVyzvqFmDRdSHKd5xA=
In-Reply-To: <11cnve1$3ofei$1@dont-email.me>
Content-Language: en-GB