HashLDash / Photon

Lightning fast and portable programming language!
GNU General Public License v2.0
68 stars 10 forks source link

Error when assigning char iter in for loop with a string variable #132

Closed Huyston closed 2 years ago

Huyston commented 2 years ago
for c in .text:
            print(c)
            print(lineBuffer)
            if measureText(.font, lineBuffer+c, .fontSize) > .width:
                .lines += lineBuffer
                lineBuffer = c # THIS DOESN'T WORK
            else:
                lineBuffer += c
Huyston commented 2 years ago

This works now. Reopen if it breaks