Thread overview | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 17, 2004 [VOTE:] Should the cast operator be mandatory? | ||||
---|---|---|---|---|
| ||||
Matthew: Yes |
March 17, 2004 Re: [VOTE:] Should the cast operator be mandatory? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | 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 Re: [VOTE:] Should the cast operator be mandatory? | ||||
---|---|---|---|---|
| ||||
Posted in reply to J Anderson | "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 Re: [VOTE:] Should the cast operator be mandatory? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | Matthew wrote:
> Matthew: Yes
cast(X)x good
(X)x not.
Yes.
-- andy
|
March 17, 2004 Re: [VOTE:] Should the cast operator be mandatory? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | Chris S. -- Yes!
Matthew wrote:
> Matthew: Yes
|
March 17, 2004 Re: [VOTE:] Should the cast operator be mandatory? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andy Friesen | 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 Re: [VOTE:] Should the cast operator be mandatory? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Juan C | "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 Re: [VOTE:] Should the cast operator be mandatory? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Juan C | 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 Re: [VOTE:] Should the cast operator be mandatory? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vathix | 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 Re: [VOTE:] Should the cast operator be mandatory? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | 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.
|
Copyright © 1999-2021 by the D Language Foundation