[Issue 17849] New: Documentation of align is incorrect

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 22 14:00:08 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17849

          Issue ID: 17849
           Summary: Documentation of align is incorrect
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: hello at petervaro.com

The documentation of the https://dlang.org/spec/iasm.html#align keyword is
incorrect. It is suggesting here:
https://github.com/dlang/dlang.org/blob/master/spec/iasm.dd#L74, that this
should be the correct way of using it:

```
struct S
{
    align 64 ubyte b;
}
```

instead of the one, that can actually be compiled:

```
struct S
{
    align(64) ubyte b;
}
```

Therefore further action is required:

- If the documented usage is the desired one, then this is a different issue,
and that behaviour needs to be implemented.

- If the keyword requires parenthesis, then the documentation should be updated
according to that.

--


More information about the Digitalmars-d-bugs mailing list