Skip to content
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

Filename.temp_dir_name should be mutable #5397

Closed
vicuna opened this Issue Nov 14, 2011 · 0 comments

Comments

Projects
None yet
2 participants
@vicuna
Copy link
Collaborator

vicuna commented Nov 14, 2011

Original bug ID: 5397
Reporter: @alainfrisch
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2013-08-31T10:48:51Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 4.00.0+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: mehdi @hcarty

Bug description

Currently, Filename.temp_dir_name is obtained from an environment variable when the Filename module is initialized.

It would be convenient to allow changing its value. This would allow some client code to control where third-party libraries, which simply use Filename.temp_file/open_temp_file, put their temp files.

One could add "get_temp_dir_name: unit -> string" and "set_temp_dir_name: string -> unit"; and temp_dir_name would be the original value (marked as deprecated, and removed in a future version).

@vicuna vicuna closed this Aug 31, 2013

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.