On 24/02/2019 10:03, Ahem A Rivet's Shot wrote:
> On Sun, 24 Feb 2019 09:27:19 +0000
> Gareth's was W7 now W10 Downstairs Computer wrote:
>
>> AIUI the whole purpose of the cast facility is to be able to cast a
>> number as an integer pointer for accessing memory=mapped I/O.
>
> That is one use for it, far from the only one. It is also very
> useful in many situations where an OO approach might seem more natural but
> the efficiency of directly controlling the memory behaviour matters.
>
If you want OO *structure* you can use it in pure C by using siource
fuiles littered with STATICs and conatining their own data and their
won menss of modifying te dayta by function calls.
Operator overloeading? The whole reason I write in C is precisely
becaiuse I do not want inadvertent passing of a numercal string to a
function expecting an integer to second guess me. It's a MISTAKE, not a
feature.
OO langeus are like fixed speed linmits. Ok for numpties but a pain in
te ass for peoole who know how to drive in all conditions.
And then we hasve 'code generators' because no one can program in them
anyway...
--
"And if the blind lead the blind, both shall fall into the ditch".
Gospel of St. Mathew 15:14
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|