Skip to content

Conversation

@ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Apr 13, 2017

An example of a QualifiedName found in a TemplateArg can be seen when dump the symbols of this compiled program: https://github.com/dlang/phobos/blob/31e1b462d2311f9d8cecb33172b28eab587b255d/std/parallelism.d#L43-L77

Also symbol parameters are prefixed with their symbol length, as per bugzilla 3043.

Implementation and Notes: https://github.com/dlang/dmd/blob/15b3ee1603b7dcc0317ba63c54f77ee9718f90e4/src/ddmd/dtemplate.d#L8323-L8331

Also symbol parameters are prefixed with their symbol length, as per bugzilla 3043.
@MartinNowak MartinNowak merged commit ebea990 into dlang:master Apr 13, 2017
@ibuclaw ibuclaw deleted the abi-templateargs branch April 13, 2017 15:08
@ibuclaw
Copy link
Member Author

ibuclaw commented Apr 13, 2017

FYI @rainers

@rainers
Copy link
Member

rainers commented Apr 13, 2017

Thanks.

If we want to document non-D symbols as template parameters, we should extend it by

    $(B S) $(GLINK Number) $(GLINK ExternallyMangledName)

or even use this instead of the MangledName rule. The symbol compression in dlang/dmd#5855 prefers to reencode the name and type, so this would rather remove the MangledName rule instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants