8000 Add function `Sys.showAll ()` · Issue #260 · hydromatic/morel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add function Sys.showAll () #260

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

Closed
julianhyde opened this issue Apr 28, 2025 · 0 comments
Closed

Add function Sys.showAll () #260

julianhyde opened this issue Apr 28, 2025 · 0 comments

Comments

@julianhyde
Copy link
Collaborator

Add function Sys.showAll () (abbreviated showAll ()) that shows the name and value of every property. This extends support for session variables (show, set, unset) added in #44.

Example:

- showAll ();
val it =
  [("directory",SOME "/Users/jhyde/dev/morel.2"),("hybrid",SOME "false"),
   ("inlinePassCount",SOME "5"),("lineWidth",SOME "79"),
   ("matchCoverageEnabled",SOME "true"),("optionalInt",NONE),
   ("printDepth",SOME "5"),("printLength",SOME "12"),
   ("relationalize",SOME "false"),
   ("scriptDirectory",SOME "/Users/jhyde/dev/morel.2"),
   ("stringDepth",SOME "70")] : (string * string option) list

Note that property optionalInt (added for testing purposes) has value NONE, which means that it is not set.

julianhyde added a commit to julianhyde/morel that referenced this issue Apr 28, 2025
Add function `Sys.showAll ()` (abbreviated `showAll ()`) that
shows the name and value of every property. This extends
support for session variables (show, set, unset) added in hydromatic#44.

Example:
```
  - showAll ();
  val it =
    [("directory",SOME "/Users/jhyde/dev/morel.2"),("hybrid",SOME "false"),
     ("inlinePassCount",SOME "5"),("lineWidth",SOME "79"),
     ("matchCoverageEnabled",SOME "true"),("optionalInt",NONE),
     ("printDepth",SOME "5"),("printLength",SOME "12"),
     ("relationalize",SOME "false"),
     ("scriptDirectory",SOME "/Users/jhyde/dev/morel.2"),
     ("stringDepth",SOME "70")] : (string * string option) list
```

Note that property `optionalInt` (added for testing purposes)
has value `NONE`, which means that it is not set.

Refactor `misc.smli` so that fewer lines change each time
a function is added to the built-in environment.

Fixes hydromatic#260
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

No branches or pull requests

1 participant
0