> On Mar 23, 2022, at 10:13 PM, Mattias Gaertner via fpc-devel > <fpc-devel@lists.freepascal.org> wrote: > >> Lol I just implemented this and made a merge request but I haven’t >> heard back from anyone yet so it’s just sitting there…. >> >> I basically just copied the structure used for “case of string” in >> that it makes if a big if-else statement. > > Did you use multiple "is" or did you check for sorted and use one loop? >
No it’s just like a the case of string syntax which checks for equality with ClassType so the order does matter. Maybe it’s not exactly like what Java has then. > >> https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/147 >> <https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/147> > > "Rebase failed" Yeah, see my other message. Not sure how to fix that right now but I’ll try if it actually reviewed and accepted. Regards, Ryan Joseph
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel