Thread overview
[dmd-internals] Language Feature Deprecations
Jul 22, 2012
Jonathan M Davis
Jul 22, 2012
Jonathan M Davis
Jul 23, 2012
Jacob Carlborg
Jul 23, 2012
David Nadlinger
Jul 24, 2012
deadal nix
July 21, 2012
Am I correct in my understanding that these keywords are or will be deprecated?:

cdouble
cfloat
creal
delete
idouble
ifloat
ireal
typedef
volatile

Though I assume that they will be kept as keywords for the foreseeable future.

And am I correct in my understanding thatn these symbols are or will be deprecated?:

<>
<>=
!<>
!<>=
!<
!<=
!>
!>=
===

I finally started on a D lexer, and I'd like to make sure that I handle these correctly. It's my intention to treat the deprecated keywords the same way that macro gets treated in that they're keywords, but they aren't valid for anything. And I intend to ignore the existence of the deprecated symbols completely (treating them as you'd treat any combination of symbols that aren't a single token). But to do that, I need to make sure that I have the list right.

I've already found a couple of bugs in the spec too (#8403 and #8406), and that's not including the fact that all of the above (save for ===) are still treated as part of the language per the docs. So, hopefully the spec will have fewer errors in it when I'm done.

- Jonathan M Davis
_______________________________________________
dmd-internals mailing list
dmd-internals@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-internals

July 21, 2012
On 7/21/12 8:09 PM, Jonathan M Davis wrote:
> Am I correct in my understanding that these keywords are or will be
> deprecated?:
>
> cdouble
> cfloat
> creal
> delete
> idouble
> ifloat
> ireal

Perhaps std.complex will provide them as aliases.

> typedef
> volatile

Yes.

> Though I assume that they will be kept as keywords for the foreseeable future.

Once the meaning of them is gone, removing them as keywords will be trivial and won't break programs.

> And am I correct in my understanding thatn these symbols are or will be
> deprecated?:
>
> <>
> <>=
> !<>
> !<>=
> !<
> !<=
> !>
> !>=
> ===

Yes.



Andrei
_______________________________________________
dmd-internals mailing list
dmd-internals@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-internals

July 21, 2012
On Saturday, July 21, 2012 20:13:43 Andrei Alexandrescu wrote:
> On 7/21/12 8:09 PM, Jonathan M Davis wrote:
> > Am I correct in my understanding that these keywords are or will be deprecated?:
> > 
> > cdouble
> > cfloat
> > creal
> > delete
> > idouble
> > ifloat
> > ireal
> 
> Perhaps std.complex will provide them as aliases.

Well, if it does, then they won't be treated as keywords anymore, and as you say, fixing it so that they're usable as normal identifiers again will be trivial without breaking code.

Thanks for the confirmation.

- Jonathan M Davis
_______________________________________________
dmd-internals mailing list
dmd-internals@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-internals

July 23, 2012

On Jul 22, 2012, at 02:09 AM, Jonathan M Davis <jmdavisProg@gmx.com> wrote:

> I finally started on a D lexer, and I'd like to make sure that I handle these correctly.

Awesome, I'm looking forward to this.

--
/Jacob Carlborg

July 23, 2012
On Mon, Jul 23, 2012 at 3:44 PM, Jacob Carlborg <doob@me.com> wrote:
> On Jul 22, 2012, at 02:09 AM, Jonathan M Davis <jmdavisProg@gmx.com> wrote:
>
> I finally started on a D lexer, and I'd like to make sure that I handle
> these
> correctly.
>
> Awesome, I'm looking forward to this.

Me too – I just want to mention that it might make sense to join forces with DCT or some of the other projects out there. Better a single finished project than wasting resources only to end up with several abandoned half-finished ones…

David
_______________________________________________
dmd-internals mailing list
dmd-internals@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-internals
July 25, 2012
This was my exact reasoning when using SDC.

By the way, typedef is used in object.d and can't be removed that easily.

2012/7/23 David Nadlinger <code@klickverbot.at>

> On Mon, Jul 23, 2012 at 3:44 PM, Jacob Carlborg <doob@me.com> wrote:
> > On Jul 22, 2012, at 02:09 AM, Jonathan M Davis <jmdavisProg@gmx.com>
> wrote:
> >
> > I finally started on a D lexer, and I'd like to make sure that I handle
> > these
> > correctly.
> >
> > Awesome, I'm looking forward to this.
>
> Me too – I just want to mention that it might make sense to join forces with DCT or some of the other projects out there. Better a single finished project than wasting resources only to end up with several abandoned half-finished ones…
>
> David
> _______________________________________________
> dmd-internals mailing list
> dmd-internals@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>