Re: Finding unsafe line of code

2018-01-01 Thread Vino via Digitalmars-d-learn
On Friday, 29 December 2017 at 10:33:16 UTC, Johan Engelen wrote: On Friday, 29 December 2017 at 10:23:24 UTC, codephantom wrote: On Friday, 29 December 2017 at 09:38:50 UTC, Vino wrote: Let me re-frame the question with an example, as the Dsafe the below line of code is considered as unsaf

Re: Finding unsafe line of code

2017-12-29 Thread Johan Engelen via Digitalmars-d-learn
On Friday, 29 December 2017 at 10:23:24 UTC, codephantom wrote: On Friday, 29 December 2017 at 09:38:50 UTC, Vino wrote: Let me re-frame the question with an example, as the Dsafe the below line of code is considered as unsafe(Pointer arithmetic), ... ini[10] a; int* p = &a[0]; for (size

Re: Finding unsafe line of code

2017-12-29 Thread codephantom via Digitalmars-d-learn
On Friday, 29 December 2017 at 09:38:50 UTC, Vino wrote: Let me re-frame the question with an example, as the Dsafe the below line of code is considered as unsafe(Pointer arithmetic), so let imagine that we have several similar line of code, how do we find such unsafe line, does the compile

Re: Finding unsafe line of code

2017-12-29 Thread Vino via Digitalmars-d-learn
On Friday, 29 December 2017 at 09:19:13 UTC, codephantom wrote: On Friday, 29 December 2017 at 08:21:10 UTC, Vino wrote: Hi All, Is there a way to find or test which line of a give code is not safe(possible memory corruption). From, Vino.B That question needs to be refined ;-) Hi, Le

Re: Finding unsafe line of code

2017-12-29 Thread codephantom via Digitalmars-d-learn
On Friday, 29 December 2017 at 08:21:10 UTC, Vino wrote: Hi All, Is there a way to find or test which line of a give code is not safe(possible memory corruption). From, Vino.B That question needs to be refined ;-)

Finding unsafe line of code

2017-12-29 Thread Vino via Digitalmars-d-learn
Hi All, Is there a way to find or test which line of a give code is not safe(possible memory corruption). From, Vino.B