• tetris11@lemmy.ml
    link
    fedilink
    arrow-up
    165
    ·
    4 months ago

    Workaround: Potato peeler extends peeler, so just cast your carrots as potatoes before you peel them, and then cast them back to carrot afterwards

    • thisfro@slrpnk.net
      link
      fedilink
      arrow-up
      75
      ·
      4 months ago

      To cast them, it uses libvegs however. It is not available in any standard package libraries, so just quickly build it from source

      • NaibofTabr@infosec.pub
        link
        fedilink
        English
        arrow-up
        61
        ·
        4 months ago

        Yeah but the current build of libvegs has some conflicts with libfruit, so if you need to use both you have to build libvegs in a different directory and then simlink it in /lib.

          • tetris11@lemmy.ml
            link
            fedilink
            arrow-up
            33
            ·
            edit-2
            4 months ago

            That’s it, let’s re-write the entire backend in C++ to make use of multiple inheritance to tackle this one use-case!

            What do you mean “this is overkill”? Do you have any idea how many tomatoes go into a fucking salad!?

    • ThunderComplex@lemmy.today
      link
      fedilink
      arrow-up
      28
      ·
      4 months ago

      Unfortunately, casting from potato to carrot is a narrowing conversion so your new carrot will lose some properties

    • mindbleach
      link
      fedilink
      arrow-up
      9
      ·
      4 months ago

      If you forget the second step, well, that’s what sweet potatoes are.