buggins / dlangui

Cross Platform GUI for D programming language
Boost Software License 1.0
813 stars 121 forks source link

Wrong use of `canFind` and `array` #618

Closed drug007 closed 2 years ago

drug007 commented 2 years ago

I guess this code is wrong because it finds errMsg in names instead of names in errMsg. Also using array to count items is a bad practice.

    bool found = any!(s=>errMsg1.canFind(s))(names);

_Originally posted by @drug007 in https://github.com/buggins/dlangui/pull/612#discussion_r879747453_

drug007 commented 2 years ago

Wrong bug report on yet-not-merged code.