changeset 304:dcb495cf2b97

Add fd method to file objects for accessing file descriptor
author Michael Pavone <pavone@retrodev.com>
date Sat, 26 Jul 2014 15:01:38 -0700
parents 60b9941d3713
children 14b4e540af28
files modules/file.tp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/file.tp	Sat Jul 26 15:01:09 2014 -0700
+++ b/modules/file.tp	Sat Jul 26 15:01:38 2014 -0700
@@ -76,6 +76,7 @@
 				iter
 			}
 			#{
+				fd <- { _fd }
 				read <- :bytes {
 					while: { bytes > _buffered && (not: _eof?)} do: {
 						_addBuffer: