[fpc-devel] case is

Hairy Pixels genericptr at gmail.com
Wed Mar 23 16:20:38 CET 2022

> On Mar 23, 2022, at 10:13 PM, Mattias Gaertner via fpc-devel <fpc-devel at 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.

	Ryan Joseph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20220323/9e575eb2/attachment-0001.htm>

More information about the fpc-devel mailing list