Issue 24868 - Undocumented cast from struct to static array
Summary: Undocumented cast from struct to static array
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2024-11-20 11:59 UTC by Nick Treleaven
Modified: 2024-11-20 12:22 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nick Treleaven 2024-11-20 11:59:29 UTC
Casting a struct to a static array is shown in issue 6092 and issue 24866, but it doesn't appear in the spec:
https://dlang.org/spec/expression.html#cast_expressions

PR incoming.
Comment 1 Dlang Bot 2024-11-20 12:01:16 UTC
@ntrel created dlang/dlang.org pull request #3926 "Fix Bugzilla Issue 24868 - Undocumented cast from struct to static array" fixing this issue:

- Fix Bugzilla Issue 24868 - Undocumented cast from struct to static array

https://github.com/dlang/dlang.org/pull/3926
Comment 2 Dlang Bot 2024-11-20 12:22:54 UTC
dlang/dlang.org pull request #3926 "Fix Bugzilla Issue 24868 - Undocumented cast from struct to static array" was merged into master:

- e2c1601e6b10b5129a42056b7d448291dcec34c1 by Nick Treleaven:
  Fix Bugzilla Issue 24868 - Undocumented cast from struct to static array

https://github.com/dlang/dlang.org/pull/3926