Void pointers

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 17 05:24:58 PDT 2016


On 05/17/2016 12:53 PM, Alex wrote:
> 2. If I want to be able to slice a iota, I have to initialize it with
> the last number. But the object, which stores the pointer does not need
> to know anything about this number. So, I rather would not like to pass
> this number only for being able to instantiate the iota struct.

How do you make a slice without the last number? You need two numbers 
for iota, and you need two numbers for a slice.


More information about the Digitalmars-d-learn mailing list