Skip to content

Conversation

@dbp
Copy link

@dbp dbp commented Aug 21, 2012

This should be cross platform, but I have no access to a windows machine to test! So, I can confirm that it works on *nix, and it should work on windows (it doesn't do anything fancy).

The only part that isn't great is that it is guaranteed to return on *nix and not on windows. I was basing this off of haskell's System.Directory.getTemporaryDirectory, and what they do for the windows version is return the Windows directory if none of the env. variables are set, and doing this they can always return a directory.

If we copied that behavior, the signature could change to reflect that it always gives back a Path, which might be desirable. I don't know how to get the Windows directory, and have no way to test, so I don't think I'm the person to add that, but I would support it happening.

@dbp
Copy link
Author

dbp commented Aug 21, 2012

Updated - it now defaults so the windows directory, as per http://msdn.microsoft.com/en-us/library/system.io.path.gettemppath.aspx .

@brson
Copy link
Contributor

brson commented Aug 21, 2012

Thanks!

@brson brson closed this Aug 21, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Dec 26, 2023
implement and test simd_masked_load and simd_masked_store

also extend the scatter/gather tests

Fixes rust-lang/miri#3235
jaisnan added a commit to jaisnan/rust-dev that referenced this pull request Jul 29, 2024
…slices (rust-lang#3237)

A follow-up on rust-lang#3200: use API to check that slices produced by some
slice operations that internally use `unsafe` are properly initialized.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: Jaisurya Nanduri <[email protected]>
Co-authored-by: Artem Agvanian <[email protected]>
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