View source code
							
							
						
								Display the source code in dmd/common/file.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function dmd.common.file.FileMapping.discard
Deletes the underlying file and frees all resources associated.
    Reinitializes this as a fresh object that can be reused.
						
				bool discard();
						
					
				This function does not abort if the file cannot be deleted, but does print
    a message on stderr and returns false to the caller. The underlying
    rationale is to give the caller the option to continue execution if
    deleting the file is not important.
Returns
true iff the file was successfully deleted. If the file was not
    deleted, prints a message to stderr and returns false.
Authors
Walter Bright, https://www.digitalmars.com
License
					Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.