frankdilu / CheLang

CheLang es un lenguaje de programación esotérico argento. Ni más, ni menos. Es la que va.
GNU General Public License v3.0
411 stars 21 forks source link

Ameo, I think you're missing a "self" #5

Closed GuidoDipietro closed 4 years ago

GuidoDipietro commented 4 years ago

My dearest frankdilu,

upon venturing into the unknown realms of CheLang I spotted the following issue.

I coded a simple loop equivalent to the following in Python:

num = input("Do be as kind as to provide me with a num: ")
def curlyHair(n):
   while n > 0:
      n = n-1

curlyHair(int(num))
# Doesn't return anything, just executes the 'while' loop
# a total of 'num' times, doesn't even modify the global value of 'num'

Let me provide a screenshot of the CheLang/argento translation of said snippet, together with the Console logs:

image

I should mention that this was the first Error I run into that wasn't addressed by the CheLang interpreter.

Is this an actual bug or am I coding para el carajo?

I can't wait to use a stable version of CheLang. The world will be a better place by then.

Ninos()

frankdilu commented 4 years ago

Hey! Thanks! My fault. When i implement the Empty class i miss the () when i return it. Fixed, commiting. Thx a lot.