Skip to content

DIP29: slice expressions#3336

Merged
9rnsr merged 1 commit intodlang:masterfrom
WalterBright:DIP29_2
Feb 28, 2014
Merged

DIP29: slice expressions#3336
9rnsr merged 1 commit intodlang:masterfrom
WalterBright:DIP29_2

Conversation

@WalterBright
Copy link
Member

This adds implicit conversions to slice expressions, analogously to pointer offset expressions.

Also fixes a typo error in the pointer offset expression conversion.

src/cast.c Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

((TypeSArray *)t1b)->dim->toInteger()? Or just copy, clear deco, and modify next? What about slices of pointers?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both of those seem like more work. Yes, I forgot about pointer slices. Will fix.

@9rnsr
Copy link
Contributor

9rnsr commented Feb 28, 2014

Looks good.

@9rnsr
Copy link
Contributor

9rnsr commented Feb 28, 2014

Auto-merge toggled on

9rnsr added a commit that referenced this pull request Feb 28, 2014
@9rnsr 9rnsr merged commit b83d6f5 into dlang:master Feb 28, 2014
@WalterBright WalterBright deleted the DIP29_2 branch February 28, 2014 18:24
@CyberShadow
Copy link
Member

This pull request introduced a regression:
https://d.puremagic.com/issues/show_bug.cgi?id=12467

ibuclaw pushed a commit to ibuclaw/dmd that referenced this pull request Jul 10, 2022
Fix 21544 - -checkaction=context formats enum members as their base type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants