[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20180316194032.GA7589@avx2>
Date: Fri, 16 Mar 2018 22:40:32 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: kieran.bingham@...asonboard.com
Cc: rasmus.villemoes@...vas.dk, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][RFC] kernel.h: provide array iterator
Proper form for iteration over an array is below:
int a[] = {1, 2, 3, 5};
for (int x: a) {
...
}
Your macro forces an iterator to be pointer which is uh-oh.
Powered by blists - more mailing lists