call Pascal DLL functions from D

Basile B. b2.temp at 1234.b2.io.ioagain
Wed Oct 25 13:49:22 UTC 2017


On Wednesday, 25 October 2017 at 10:47:56 UTC, Oleg B wrote:
> On Wednesday, 25 October 2017 at 04:30:12 UTC, Basile B. wrote:
> If I wrote `array[5..7] of ...` I get array that can be indexed 
> by `5`, `6` and `7`, right? It means that array have 3 
> elements. If A=5, B=7 then length of array is B-A+1, 7-5+1=3. 
> In my case I have [1..49] and [2..50] ranges: 49-1+1=49, 
> 50-2+1=49. I don't understand why length must be 48...

Yeah of course, me neither.


More information about the Digitalmars-d-learn mailing list