diff modules/file.tp @ 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 c0561cb06ee3
children
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: