[REBOL] How are functions in REBOL polymorphic? Re:

1999-12-09 Thread giesse
[EMAIL PROTECTED] wrote: > etc. (you get the idea)? So is it impossible to 'add' capabilities to "read" > without "overloading" the word so it wouldn't be able to be used as it > normally is? For instance, if I wanted to be able to say: > > read pnm://whatever-real-audio-file Have a look at sy

[REBOL] How are functions in REBOL polymorphic? Re:

1999-12-08 Thread bo
On 7-Dec-1999/23:20:01-5:00, [EMAIL PROTECTED] wrote: >For instance, I can use the word read for so many different things... >reading from an ftp site, reading from a web page, getting a directory >listing, reading a file, and on and on. Is there something internal in the >read function that does

[REBOL] How are functions in REBOL polymorphic? Re:

1999-12-08 Thread jimg
Hi Keith, You can do this by creating your own port protocol handler for pnm or audiobook in the same way as ftp and http are handled. This is done by creating a port handler object and adding it to the system/schemes block. Try doing a "probe system/schemes/finger" to see an example port handler