Skip to content

Conversation

kythant
Copy link

@kythant kythant commented Oct 9, 2025

To reduce cross dependencies across generated types and help with trimming.

{
GUID guid_value = generate_guid(signature);
category category = get_category(type);
w.write("IID_%%", type.TypeName(), category == category::enum_type || category == category::struct_type ? "Reference" : "");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to generate two IIDs for delegates? As in, one for the delegate itself and one for its reference version?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would they be the same GUID or two different GUIDs?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They would be different (different interfaces, one is the delegate, one is the IReference<TheDelegate>).

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.

2 participants