Skip to content

Simplify OSEnvironment #18038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: Pharo13
Choose a base branch
from

Conversation

jecisc
Copy link
Member

@jecisc jecisc commented Mar 25, 2025

Currently OSEnvironment has 3 subclasses

  • Null environment
  • Unix environment
  • Windows environment

It delegates what to do on these 3 classes. But the environment also knows the platform. And platforms have a full hierarchy to manage the different OS.

I have the impression that we are duplicating the logic of delegation depending on the OS in the environment and the platform. I'm proposing to remove the subclasses of OSEnvironment and delegate everything to the platform to simplify things.

Fixes #13272

@jecisc jecisc added the Status: Need more work The issue is nearly ready. Waiting some last bits. label Mar 26, 2025
@jecisc
Copy link
Member Author

jecisc commented Mar 27, 2025

Do not merge yet, I broke something on windows

@guillep guillep marked this pull request as draft March 27, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Need more work The issue is nearly ready. Waiting some last bits.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OSPlatform and OSEnvironment could be merged
3 participants