comp.lang.c
[Top] [All Lists]

Re: Is cast operator unary or binary? How many operands?

Subject: Re: Is cast operator unary or binary? How many operands?
From: Richard Tobin
Date: 30 Apr 2008 16:01:47 GMT
Newsgroups: comp.lang.c

In article <fva02f$8jm$1@xxxxxxxx>, jacob navia  <jacob@xxxxxxxxxx> wrote:


>Besides, a hyper hyper generic procedure:
>       Transform(anything,anything)
>is just a dream...

Well, it's easily implementable:

  #define Transform(value, type) ((type)(value))

>You can have only concrete procedures:

You were the one who said "conceptually":

>>> I am conceptually calling
>>>
>>> double TransformIntegerToDouble(int);

Conceptually, you can have whatever you like.

-- Richard
-- 
:wq

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy