4235 – !in not working (D1)

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4235 - !in not working (D1)
Summary: !in not working (D1)
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 major
Assignee: No Owner
URL: http://www.digitalmars.com/d/1.0/expr...
Keywords: spec
Depends on:
Blocks:
Reported: 2010年05月26日 11:18 UTC by Random Name
Modified: 2012年01月23日 17:57 UTC (History)
4 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Random Name 2010年05月26日 11:18:44 UTC
According to the D1 spec !in should be a valid syntax, however the compiler outputs a syntax error when used. With a large enough code base the compiler crashes.
Comment 1 Masahiro Nakagawa 2010年05月26日 12:19:09 UTC
I think D1 spec is incorrect. "!in" isn't listed at D1 changelog.
Comment 2 Stewart Gordon 2010年05月27日 18:56:52 UTC
The spec is a more authoritative source than the changelog.
But still, changelogs should be complete. A particular problem occurs if something's noted in the changelog, but then later it is reverted without being noted in the changelog. See issue 926 for an example.
Comment 3 Don 2010年06月01日 07:02:14 UTC
Do you have a test case for the crash?
Comment 4 Random Name 2010年06月02日 13:57:00 UTC
I should not have posted about that crash in this report because it's probably unrelated to !in. The way I can reproduce it in my code is if I modify a string mixin from !(something in arr) to something !in arr. I have not tried to make a minimal test case for it but a single const string with a mixin statement might be enough.
Comment 5 Don 2010年06月04日 06:06:42 UTC
Removing the ICE keyword from this bug since it has no test case. I have tried many times to reproduce a crash, but there's no enough information.
Comment 7 Walter Bright 2012年01月23日 17:57:37 UTC
!in was never intended for D1, I removed it from the spec.


AltStyle によって変換されたページ (->オリジナル) /