Re: Return values for open() and define_c_*()

new topic     » goto parent     » topic index » view thread      » older message » newer message

aku saya wrote:
> I have a suggestion,
> how if open() returns the C file handle (on windows and linux),
> define_c_*() and routine_id() returns the memory address (as it is now
> with call_back()).

I like to use small integer values for these things,
so I can index easily into my own internal tables.
I also think it's better, where possible, to shield
Euphoria programs from the details of the underlying machine
or operating system. If you want to access files
using the Windows API, you might as well wrap the open function
as well as the read/write/close/etc. functions.

Regards,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu