Skip to content

Commit 3007a79

Browse files
committed
README: the re-export is a using-declaration inside the module's namespace
0.5.0 moved the entry points out of global scope and this paragraph still showed the old spelling. The mechanism it describes is unchanged: the generator needs the identifier before the `(` and nothing else.
1 parent 45a0443 commit 3007a79

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,10 @@ not mangle, so two copies that disagree are one symbol: the link is clean and
524524
each side reads the arguments by its own ABI, with no compile error and no link
525525
error. That is the copy this removes.
526526

527-
**The module re-exports names, not signatures.** `export using ::saxpy_device;`
528-
needs the identifier and nothing else, so the generator has no C parser in it and
529-
the header stays the only place a signature is written. Measured on both
527+
**The module re-exports names, not signatures.** `using ::saxpy_device;` inside
528+
the module's namespace needs the identifier and nothing else, so the generator
529+
has no C parser in it and the header stays the only place a signature is
530+
written. Measured on both
530531
implementations this package supports: a consumer that imports the module and
531532
never includes the header calls the entry point and links against an
532533
implementation built by a different driver, under GCC 16.1 and clang 22.1.8.

0 commit comments

Comments
 (0)