Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Introduce distinction between modules and assemblies - #1286

Merged
jkotas merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:ecmaAssembly
May 24, 2016
Merged

jkotas merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:ecmaAssembly

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

As I am looking at consolidation of the AOT metadata format, the representation of modules shows up as an interesting difference.

I'm not saying we should merge this pull request - I just wanted to see how this would look like in our type system and what might the problem points be. Doesn't seem too bad except for the part where we need to construct a name for non-assembly modules.

Feel free to say we don't want to merge this. No hard feelings :).

@MichalStrehovsky MichalStrehovsky changed the title [WIP] Introduce distinction between modules and assemblies Introduce distinction between modules and assemblies May 20, 2016
attributeNamespace, attributeName).IsNil;
}

public override string ToString()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think there needs to be an implementation of ToString for EcmaModule. Especially as the ToString on EcmaType will use it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added a ToString override that simply uses the module name.

@davidwrighton

Copy link
Copy Markdown
Member

Mmm, as you note, there is little interest in bringing multimodule assemblies back completely, but this seems like a sufficiently small impact, and in case we ever do want them back, having the basic infrastructure in place(like this) would be very helpful. I think this is a reasonable thing to merge, if we can give plain EcmaModule's a good name.

@manu-st

manu-st commented May 23, 2016

Copy link
Copy Markdown

Note that in the past I used multimodule assemblies during development, not release. So they are definitely useful but for the typical CoreCLR scenario that might be less true.

@davidwrighton

Copy link
Copy Markdown
Member

Looks good to me

@jkotas
jkotas merged commit 41f49e7 into dotnet:master May 24, 2016
@MichalStrehovsky
MichalStrehovsky deleted the ecmaAssembly branch May 27, 2016 17:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants