Bug 658 – struct pointers in with()

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2006-12-06T16:36:00Z
Last change time
2015-06-09T05:15:16Z
Keywords
pull, rejects-valid
Assigned to
bugzilla
Creator
casantander1

Comments

Comment #0 by casantander1 — 2006-12-06T16:36:23Z
I've mentioned this before, but now I'm submitting it here. //--------------- struct foo {} void main() { foo f1; foo *f2; with (f1) {} // works with (*f2) {} // works with (f2) {} // doesn't work } //--------------- It would be nice if the last line also worked.
Comment #1 by andrei — 2008-09-20T17:44:17Z
(In reply to comment #0) > I've mentioned this before, but now I'm submitting it here. > > //--------------- > struct foo {} > > void main() > { > foo f1; > foo *f2; > with (f1) {} // works > with (*f2) {} // works > with (f2) {} // doesn't work > } > //--------------- > > It would be nice if the last line also worked. > Bumping this as an oversight.
Comment #2 by henning — 2013-07-29T16:41:16Z
Comment #3 by github-bugzilla — 2013-08-05T17:09:38Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/140e9138302afa59a98ffc1d382cd2a79b825f89 fix issue 658 - struct pointers in with() https://github.com/D-Programming-Language/dmd/commit/75f77526e1c522f74e01c02eb687d09da51a1e88 Merge pull request #2419 from hpohl/658 [enh] fix issue 658 - struct pointers in with()