Jump to page: 1 2 3
Thread overview
[VOTE:] Should the cast operator be mandatory?
Mar 17, 2004
Matthew
Mar 17, 2004
J Anderson
Mar 17, 2004
Matthew
Mar 17, 2004
Ben Hinkle
Mar 17, 2004
J C Calvarese
Mar 17, 2004
larry cowan
Mar 17, 2004
Andy Friesen
Mar 17, 2004
Juan C
Mar 17, 2004
Matthew
Mar 17, 2004
Vathix
Mar 17, 2004
Matthew
Mar 17, 2004
C. Sauls
Mar 17, 2004
Andrew Edwards
Mar 17, 2004
J C Calvarese
Mar 18, 2004
C
Mar 18, 2004
Derek Parnell
Mar 18, 2004
Phill
Mar 19, 2004
Kris
Mar 23, 2004
Burton Radons
Mar 23, 2004
Ant
Mar 24, 2004
Burton Radons
Mar 24, 2004
Andy Friesen
March 17, 2004
Matthew: Yes


March 17, 2004
Matthew wrote:

>Matthew: Yes
>

Cast on everything be mandatory?  Details, sorry I missed the discussion on this.

-- 
-Anderson: http://badmama.com.au/~anderson/
March 17, 2004
"J Anderson" <REMOVEanderson@badmama.com.au> wrote in message news:c39hva$1m1u$1@digitaldaemon.com...
> Matthew wrote:
>
> >Matthew: Yes
> >
>
> Cast on everything be mandatory?

Anytime a cast is used, it should be via the cast operator, rather than a C-style cast.

It doesn't mean that all implicit conversions should be given a cast. That's another debate entirely.

>  Details, sorry I missed the discussion
> on this.

Haven't time to summarise, but there're lots of recent posts.


March 17, 2004
Matthew wrote:
> Matthew: Yes

cast(X)x good
(X)x not.

Yes.

 -- andy
March 17, 2004
Chris S. -- Yes!

Matthew wrote:
> Matthew: Yes
March 17, 2004
Well, yes, but -- "Oh no! It'll make porting from C more difficult!"
It seems to me that this is another case where Walter would prefer to leave in a
flaw from C -- rather than making D the best language it can be.

In article <c39n7m$1uqk$1@digitaldaemon.com>, Andy Friesen says...
>
>Matthew wrote:
>> Matthew: Yes
>
>cast(X)x good
>(X)x not.
>
>Yes.
>
>  -- andy


March 17, 2004
"Juan C" <Juan_member@pathlink.com> wrote in message news:c39vkk$2fof$1@digitaldaemon.com...
> Well, yes, but -- "Oh no! It'll make porting from C more difficult!"

In this case that "more difficult" is a good thing!

> It seems to me that this is another case where Walter would prefer to
leave in a
> flaw from C -- rather than making D the best language it can be.
>
> In article <c39n7m$1uqk$1@digitaldaemon.com>, Andy Friesen says...
> >
> >Matthew wrote:
> >> Matthew: Yes
> >
> >cast(X)x good
> >(X)x not.
> >
> >Yes.
> >
> >  -- andy
>
>


March 17, 2004
Juan C wrote:
> Well, yes, but -- "Oh no! It'll make porting from C more difficult!"
> It seems to me that this is another case where Walter would prefer to leave in a
> flaw from C -- rather than making D the best language it can be.
> 

How about making it a deprecated feature, so you have to pass -d to the command line for it to compile?

-- 
Christopher E. Miller
March 17, 2004
I could live with that, but I reckon it'll just smell like a warning by another name to big-W

"Vathix" <vathix@dprogramming.com> wrote in message news:c3a43k$2ocm$1@digitaldaemon.com...
> Juan C wrote:
> > Well, yes, but -- "Oh no! It'll make porting from C more difficult!" It seems to me that this is another case where Walter would prefer to
leave in a
> > flaw from C -- rather than making D the best language it can be.
> >
>
> How about making it a deprecated feature, so you have to pass -d to the command line for it to compile?
>
> -- 
> Christopher E. Miller


March 17, 2004
On Wed, 17 Mar 2004 12:18:00 -0000, Matthew <matthew@stlsoft.org> wrote:

> Matthew: Yes

Andrew: Yes!
Vathix's deprecated (-d) suggestion may warrant a second look! However, I don't think it necessary.
« First   ‹ Prev
1 2 3