Re: Programming in D book is about 78% translated

2013-02-22 Thread Ali Çehreli

On 02/01/2013 03:55 AM, Philippe Sigaud wrote:

 I like how you introduce the new syntax for 'alias' and 'alias this'.

I just learned that 'alias this' has been converted to the old syntax in 
2.062. I can't find any obvious indicator in the changelog.


Ali



Re: Programming in D book is about 78% translated

2013-02-22 Thread Philippe Sigaud
On Fri, Feb 22, 2013 at 6:15 PM, Ali Çehreli acehr...@yahoo.com wrote:
 On 02/01/2013 03:55 AM, Philippe Sigaud wrote:

 I like how you introduce the new syntax for 'alias' and 'alias this'.

 I just learned that 'alias this' has been converted to the old syntax in
 2.062. I can't find any obvious indicator in the changelog.

*sigh*

Wasn't it only 'alias this = symb;' that got ditched?


Re: Programming in D book is about 78% translated

2013-02-22 Thread Ali Çehreli

On 02/22/2013 11:29 AM, Philippe Sigaud wrote:

On Fri, Feb 22, 2013 at 6:15 PM, Ali Çehreliacehr...@yahoo.com  wrote:

On 02/01/2013 03:55 AM, Philippe Sigaud wrote:


I like how you introduce the new syntax for 'alias' and 'alias this'.


I just learned that 'alias this' has been converted to the old syntax in
2.062. I can't find any obvious indicator in the changelog.


*sigh*

Wasn't it only 'alias this = symb;' that got ditched?


That's correct.

Ali


Re: Programming in D book is about 78% translated

2013-02-22 Thread Maxim Fomin

On Friday, 22 February 2013 at 20:00:58 UTC, Ali Çehreli wrote:

On 02/22/2013 11:29 AM, Philippe Sigaud wrote:
On Fri, Feb 22, 2013 at 6:15 PM, Ali 
Çehreliacehr...@yahoo.com  wrote:

On 02/01/2013 03:55 AM, Philippe Sigaud wrote:

I like how you introduce the new syntax for 'alias' and 
'alias this'.


I just learned that 'alias this' has been converted to the 
old syntax in

2.062. I can't find any obvious indicator in the changelog.


*sigh*

Wasn't it only 'alias this = symb;' that got ditched?


That's correct.

Ali


After recent messages I realize that original depreciation 
discussion on github was really far away from community which is 
sign of proper announcement procedure failure. By the way, this 
also indicates that situation with D changelog is not 
satisfactory either.


Re: Programming in D book is about 78% translated

2013-02-22 Thread Andrej Mitrovic
On 2/22/13, Maxim Fomin ma...@maxim-fomin.ru wrote:
 By the way, this
 also indicates that situation with D changelog is not
 satisfactory either.

Yes, hopefully we can improve this. As a start I made this pull which
lists language changes at the top:
https://github.com/D-Programming-Language/d-programming-language.org/pull/284


Re: Programming in D book is about 78% translated

2013-02-03 Thread Dejan Lekic
Walter Bright wrote:

 On 1/31/2013 9:10 PM, Ali Çehreli wrote:
 I have continued with the translation of the book. At this point there are 
551
 pages in English of total 711 pages in Turkish.

 In addition to many corrections and additions throughout the book, there are 
the
 following chapters translated:

 * Universal Function Call Syntax (UFCS)
 * Properties
 * Contract Programming for Structs and Classes
 * alias
 * alias this
 * Pointers

 As a reminder, the book is available as PDF, downloadable from the header of
 each chapter:

http://ddili.org/ders/d.en/index.html

 No Kindle or Lulu versions yet.
 
 
 Looking forward to getting it finished. And a Kindle version is very 
important!
 Amazon reaches a very wide audience.

I have yet to see a Kindle or ePUB scientific book that can be compared to the 
paper one... I stopped buying scientific literature for Kindle... I buy only 
novels. Often printed copies of books have columns on the side of the text that 
provide very useful examples of whatever the current section is talking about. 
These are never done properly in electronic books. If there is an example of 
such, please let me know - I would like to see it.

Maybe it is only me and my taste... Idk...

-- 
Dejan Lekic
dejan.lekic (a) gmail.com
http://dejan.lekic.org


Re: Programming in D book is about 78% translated

2013-02-03 Thread Dejan Lekic
Ali Çehreli wrote:

 I have continued with the translation of the book. At this point there
 are 551 pages in English of total 711 pages in Turkish.
 
 In addition to many corrections and additions throughout the book, there
 are the following chapters translated:
 
 * Universal Function Call Syntax (UFCS)
 * Properties
 * Contract Programming for Structs and Classes
 * alias
 * alias this
 * Pointers
 
 As a reminder, the book is available as PDF, downloadable from the
 header of each chapter:
 
http://ddili.org/ders/d.en/index.html
 
 No Kindle or Lulu versions yet.
 
 Ali

Excellent work Ali - I am sure the D community appreciates greatly your work on 
this book!

-- 
Dejan Lekic
dejan.lekic (a) gmail.com
http://dejan.lekic.org


Re: Programming in D book is about 78% translated

2013-02-03 Thread Dejan Lekic
Peter Sommerfeld wrote:

 Dejan Lekic wrote:
 
 I have yet to see a Kindle or ePUB scientific book that can be compared
 to the  paper one... I stopped buying scientific literature for Kindle...
 I buy  only novels.
 
 Me too! Unfortunately I bought Andrei's book for Kindle. It occasionally
 blocks on Kindle, even after I have reloaded it a few times. Works well
 on my laptop though. Theoretically searching would be an advantage for
 electronic books, but it is nearly useless without complex queries. And
 the table of contents lists chapters only...
 
 Peter

Good to see that I am not the only one... :) Yes, search and hyperlinks are 
advantage, but the so far I rarely search, I read book from first page to the 
last, and the most important thing for me is the readability. Even the source 
code is formatted poorly in ePUB and Kindle, especially if I decide to increase 
slightly the overall font size in the book by few points...

-- 
Dejan Lekic
dejan.lekic (a) gmail.com
http://dejan.lekic.org


Re: Programming in D book is about 78% translated

2013-02-01 Thread Walter Bright

On 1/31/2013 9:10 PM, Ali Çehreli wrote:

I have continued with the translation of the book. At this point there are 551
pages in English of total 711 pages in Turkish.

In addition to many corrections and additions throughout the book, there are the
following chapters translated:

* Universal Function Call Syntax (UFCS)
* Properties
* Contract Programming for Structs and Classes
* alias
* alias this
* Pointers

As a reminder, the book is available as PDF, downloadable from the header of
each chapter:

   http://ddili.org/ders/d.en/index.html

No Kindle or Lulu versions yet.



Looking forward to getting it finished. And a Kindle version is very important! 
Amazon reaches a very wide audience.




Re: Programming in D book is about 78% translated

2013-02-01 Thread Philippe Sigaud
On Fri, Feb 1, 2013 at 6:10 AM, Ali Çehreli acehr...@yahoo.com wrote:
 I have continued with the translation of the book. At this point there are
 551 pages in English of total 711 pages in Turkish.

 In addition to many corrections and additions throughout the book, there are
 the following chapters translated:

 * Universal Function Call Syntax (UFCS)
 * Properties
 * Contract Programming for Structs and Classes
 * alias
 * alias this
 * Pointers

I like how you introduce the new syntax for 'alias' and 'alias this'.
I'm not sure these are well known yet, so well done! I should make a
pass in my own code base to change that.

I did not read the part on properties, since I'm pretty sure you'll
have to write it anew ;)


Re: Programming in D book is about 78% translated

2013-02-01 Thread Ali Çehreli

On 02/01/2013 03:55 AM, Philippe Sigaud wrote:

 I like how you introduce the new syntax for 'alias' and 'alias this'.

That change came just in time. :)

 I did not read the part on properties, since I'm pretty sure you'll
 have to write it anew ;)

No problem. I have rewritten and corrected many parts of the book 
already. Online books are great. :)


Ali



Re: Programming in D book is about 78% translated

2013-02-01 Thread Andrej Mitrovic
On 2/1/13, Ali Çehreli acehr...@yahoo.com wrote:
 I have continued with the translation of the book.

Very cool!

Btw, a section from the book:

// Do not use the older syntax:
alias existing_name new_name;

I don't think this syntax will ever be deprecated (it would break a
metric ton of code), so there's nothing wrong with using it.


Re: Programming in D book is about 78% translated

2013-02-01 Thread Ali Çehreli

On 02/01/2013 11:12 AM, Andrej Mitrovic wrote:
 On 2/1/13, Ali Çehreliacehr...@yahoo.com  wrote:
 I have continued with the translation of the book.

 Very cool!

 Btw, a section from the book:

 // Do not use the older syntax:
 alias existing_name new_name;

 I don't think this syntax will ever be deprecated (it would break a
 metric ton of code), so there's nothing wrong with using it.

You are right. What I meant is more like there is no need to continue 
using this awkward syntax anymore. I will change it later to something 
milder. :)


Ali



Re: Programming in D book is about 78% translated

2013-02-01 Thread Rob T

On Friday, 1 February 2013 at 19:27:11 UTC, Ali Çehreli wrote:

On 02/01/2013 11:12 AM, Andrej Mitrovic wrote:
 On 2/1/13, Ali Çehreliacehr...@yahoo.com  wrote:
 I have continued with the translation of the book.

 Very cool!

 Btw, a section from the book:

 // Do not use the older syntax:
 alias existing_name new_name;

 I don't think this syntax will ever be deprecated (it would
break a
 metric ton of code), so there's nothing wrong with using it.

You are right. What I meant is more like there is no need to 
continue using this awkward syntax anymore. I will change it 
later to something milder. :)


Ali


Maybe something like use of old syntax is discouraged.

I have used your on-line book many times, so thanks for the 
effort! It is very nice to have an up-to-date version.


--rt


Programming in D book is about 78% translated

2013-01-31 Thread Ali Çehreli
I have continued with the translation of the book. At this point there 
are 551 pages in English of total 711 pages in Turkish.


In addition to many corrections and additions throughout the book, there 
are the following chapters translated:


* Universal Function Call Syntax (UFCS)
* Properties
* Contract Programming for Structs and Classes
* alias
* alias this
* Pointers

As a reminder, the book is available as PDF, downloadable from the 
header of each chapter:


  http://ddili.org/ders/d.en/index.html

No Kindle or Lulu versions yet.

Ali