When is a cast not a cast?

Blair P. Houghton bph at buengc.BU.EDU
Sat May 20 04:31:33 AEST 1989


In article <2051 at unisoft.UUCP> hamish at unisoft.UUCP (Hamish Reid) writes:
>Blair, you still haven't answered the question.

What question?  Okay, I got one for you:  what is the meaning of life?
Define it semantically.  Screw formalism.  Just give me a ballpark
estimate.  If it's not on my desk in the morning, life
must cease to exist.  And seriously (:-)), why would you want such
a thing to exist?  It would only screw up this nice mix of methane
gases and the arrangement of volcanic rocks we have on this planet...

>Dangerous Analogy, again - it makes some sort of sense to add (say) "8"
>(units unspecified but generally understood) to 2052 McGee; in some
>reasonably-well understood intuitive sense it probably means something
>like move 8 apartments (note type and implicit scaling here) to the
>south down McGee, and read the address - "2060 McGee" (actually, the
>wrong answer - it's not the same block - but we can allow for that if
>we know the particular implementation...).  This is *not* the same as
>adding two actual addresses.

And if you want to lob a terrorist grenade into a block of flats?  Are
you going to cobble up the average by doing all that address-integer-
address conversion one apartment at a time?  Or are you going to sum a
column of numbers, divide by the count, and throw a high, hard one at
the one nearest the result?

>Blair, a constructive challenge:

>Post, to this newsgroup, a formal semantics definition of some proposed

For a semanticist or a professional computer scientist (of which I doubt
many have the time to be wasting on this sort of thing... :) maybe, neither
of which I am.  I'm just a C-coding hacknut with a yen to see two pointers
added together.  It's not going to form a final result, surely, except
maybe for some bizarre statistical procedure or some method of
characterizing an unknown system by its transformant signature, but it is
there to allow such things as quick access to the centroid of whatever
memory map exists, among no doubt countless other uses.  Shit.  You tell
me that fifteen years ago you thought pointers were worth the extra *.

I merely came up with an idea.  It's up to the professionals to come up
with reasons that it is viable.  Just saying 'no, it's not' isn't going
to convince me that you've tried.  Everything has its pros, no matter
the cons.

Barring that, I'd do with an explanation of the decision to nonimplement
it from those who made the decision, not a load of folk-etymological
crapola from a load of casual rom-bats.  They do put 'rationale' in with
standards, you know.

>Until we see this formal semantics, many of us will remain convinced
>that you still do not have a totally clear grasp of pointers - or C for

Not relevant.  Until I see your answer to the meaning of life, in
triplicate, all of us will remain convinced that you lack a sense of
proportion.

				--Blair
				  "Lemme give you a hint:
				   it's NOT binary code..."



More information about the Comp.lang.c mailing list