[Issue 16608] 'static foreach', local function template, 'static if', anySatisfy: Only the first iteration seems to work

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Oct 11 12:16:05 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16608

--- Comment #1 from Ali Cehreli <acehreli at yahoo.com> ---
Johan Engelen notes that the problem is because the local function is generated
only for the first iteration:

http://ldc.acomirei.ru/#compilers:!((compiler:ldc,options:%27-release+-O3+-boundscheck%3Doff+-mtriple%3Dx86_64-pc-windows%27,sourcez:JYWwDg9gTgLgBAZxgEwHQgKYwIYG4BQ%2BAbhMMnCNsAHYAUAlHAN74CQAZtBtgMYAWcWglxwAggBtg2BAGUMARwCEtAETYVAGjgqARivqMWcYyeMB6M3AAqfDHDBQIO8RhBxgCODD7Z43j3DsAK7UPDDAENTunjzY4i7kkeIAnoHQ2ur4pqY6EBDicDyRyMDhkUIwUDQA5nAAHvQMzFnZrQ7Y1ZS0IAjVWipF4NhV1LWa9f1w2NTk4wj0BK2tUFhBUFF1cAC8W4iLSwC%2BhEtwFtZ8AUUzpRFRARh1YBhhGOQwEHA6dpVBdpxQXls2j07hgGCgvluLVaSEhPHc7EE02SMkhCHYyWUVxKZWo/T0BmaJ1M7U62G6vX6yQwnn%2B2i0832rSOJww4gQdiMxOMpK6PT62gAcgB5NIAuYLaHZI5sI4HIA)),filterAsm:(commentOnly:!t,directives:!t,labels:!t),version:3

--


More information about the Digitalmars-d-bugs mailing list