Hacker News new | past | comments | ask | show | jobs | submit login

Replace *count with this->count and you can see why this can cause pessimization.



What would that change? If this->count was a pointer you'd still have to de-reference it explicitly. Or am I missing the point of your argument?


I agree that in this toy example passing a count argument by reference makes little sense, but you'd get the same thing if you accessed the count field field of

    struct s {
        int count;
        char *chars;
    };




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: