www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Far keyword

reply Trevor Parscal <Trevor_member pathlink.com> writes:
This might sound dumb.. but..

what is a far - and what do I do when i am porting C to D and it uses a far ?

I am porting (litterally writing the whole thing in D) libpng - or something
close that will read PNG images... Very ambitious - I know..

Thanks,
Trevor Parscal
Jan 29 2006
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Trevor Parscal wrote:

 what is a far - and what do I do when i am porting C to D and it uses a far ?
Just delete it. It's for 16-bit code, and D doesn't support that...
 I am porting (litterally writing the whole thing in D) libpng - or something
 close that will read PNG images... Very ambitious - I know..
Why not use libpng instead ? Are you making an OOP wrapper or so ? Otherwise, porting the *header* to an import module is more useful. --anders
Jan 29 2006