Thank you all for your help. I translated the program, and it seems I even collected it with the help of the LDC. I understand the reasons for Segfault, the project is here: https://github.com/aquaratixc/redo-d/blob/main/redo.d