Re: help with c translation

2009-07-02 Thread Bill Baxter
On Thu, Jul 2, 2009 at 9:07 AM, BCS wrote: > Hello Ary, > >> Well, it should work! const means, once a value is assigned to that >> variable, it never changes again. The compiler can do static analysis >> to verify this. And that's why it works. And that's why D should also >> work this way, IMHO.

Re: help with c translation

2009-07-02 Thread Lars T. Kyllingstad
BCS wrote: Hello Ary, Well, it should work! const means, once a value is assigned to that variable, it never changes again. The compiler can do static analysis to verify this. And that's why it works. And that's why D should also work this way, IMHO. In D1, const is truly const, as in never

Re: help with c translation

2009-07-02 Thread BCS
Hello Ary, Well, it should work! const means, once a value is assigned to that variable, it never changes again. The compiler can do static analysis to verify this. And that's why it works. And that's why D should also work this way, IMHO. In D1, const is truly const, as in never changes, eve

Re: help with c translation

2009-07-02 Thread Lars T. Kyllingstad
Ary Borenszweig wrote: Lars T. Kyllingstad escribió: robby wrote: i'm using D1/Tango. sorry, im not sure to how to explain the error messages, but if you need to look a t full code, here is the link http://www.ibsensoftware.com/download.html thanks again. Several places in that code, I not

Re: help with c translation

2009-07-02 Thread Ary Borenszweig
Lars T. Kyllingstad escribió: robby wrote: i'm using D1/Tango. sorry, im not sure to how to explain the error messages, but if you need to look a t full code, here is the link http://www.ibsensoftware.com/download.html thanks again. Several places in that code, I notice things like this:

Re: help with c translation

2009-07-02 Thread robby
Lars T. Kyllingstad Wrote: > robby wrote: > > i'm using D1/Tango. sorry, im not sure to how to explain the error > > messages, but if you need to look a t full code, here is the link > > > > http://www.ibsensoftware.com/download.html > > > > thanks again. > > > Several places in that code, I

Re: help with c translation

2009-07-02 Thread Lars T. Kyllingstad
robby wrote: i'm using D1/Tango. sorry, im not sure to how to explain the error messages, but if you need to look a t full code, here is the link http://www.ibsensoftware.com/download.html thanks again. Several places in that code, I notice things like this: const type foo; ...

Re: help with c translation

2009-07-02 Thread robby
i'm using D1/Tango. sorry, im not sure to how to explain the error messages, but if you need to look a t full code, here is the link http://www.ibsensoftware.com/download.html thanks again.

Re: help with c translation

2009-07-02 Thread Lars T. Kyllingstad
robby wrote: thanks for help, i did the conversion as you mentioned and i get various errors involving constant, lvalue, etc., just fyi, its part of code from brieflz (LZ77 variant) which ive been trying to port to D for use in my program. Perhaps you could paste the error messages here? And

Re: help with c translation

2009-07-02 Thread robby
thanks for help, i did the conversion as you mentioned and i get various errors involving constant, lvalue, etc., just fyi, its part of code from brieflz (LZ77 variant) which ive been trying to port to D for use in my program.

Re: help with c translation

2009-07-02 Thread Lars T. Kyllingstad
robby wrote: can anybody help me translate this c function to d, im having a problem with the data types. thanks. //- unsigned int BLZCC blz_pack(const void *source, void *destination, unsigned int length,

help with c translation

2009-07-02 Thread robby
can anybody help me translate this c function to d, im having a problem with the data types. thanks. //- unsigned int BLZCC blz_pack(const void *source, void *destination, unsigned int length,