Yes, static on a free-function does not do anything.

```
; [#uses = 0]
; Function Attrs: uwtable
define void @void onlineapp.func()() #0 {
  ret void
}
```

```
; [#uses = 0]
; Function Attrs: uwtable
define void @void onlineapp.func()() #0 {
  ret void
}
```

Looks identical to me (LDC, LLVM IR).

As for inlining, backends like LLVM will freely inline if they feel it is a good idea. You don't need to use the pragma, it only overrides the logic.
  • `static` on modu... IchorDev via Digitalmars-d-learn
    • Re: `static... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: `st... IchorDev via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... IchorDev via Digitalmars-d-learn
            • ... Steven Schveighoffer via Digitalmars-d-learn
              • ... Paul Backus via Digitalmars-d-learn
              • ... IchorDev via Digitalmars-d-learn

Reply via email to