プレイ日記
Kl'Dck Hul HissingToaster
Playing around with a module syntax. What's peeps' first impressions? Everything can be done without the sugar, its just not as pretty...
7そうだね
プレイ済み
返信[1]
親投稿
Kl'Dck Hul HissingToaster
After some de-sugaring...
0そうだね
プレイ済み
返信[2]
親投稿
Jaxon SuperJax
Nice. Easily Understandable. That's a plus in my book!
1そうだね
プレイ済み
返信[3]
親投稿
raimondz raimondxz
Module and export are word reserved in your syntax, right? Then, could you use the the # chatacter at the begin of each word? ,
1そうだね
プレイ済み
返信[4]
親投稿
Aaron 3cx-84kr-7mvl-wj
can u do minecraft? That would be Amazing!
0そうだね
未プレイ
返信[5]
親投稿
NICHOLAS★ Nicholas6108
minecraft minecraft MINECRAFT
0そうだね
未プレイ
返信[6]
親投稿
toxi toxibunny
That first screenshot reminds me of object-oriented stuff i did with python. The second looks C++ish. It all looks more complicated than I thought it would be, which is ...good? I suppose?
1そうだね
未プレイ
返信[7]
親投稿
Kl'Dck Hul HissingToaster
@raimondz - module and export are syntactic sugar for plain old basic. when the program is running, they are not in memory. everyone else - MINECRAFT TOO HARD
0そうだね
プレイ済み
返信[8]
親投稿
Kl'Dck Hul HissingToaster
PROBABLY
0そうだね
プレイ済み
返信[9]
親投稿
Kl'Dck Hul HissingToaster
@toxi - I don't think theres going to be a way around pointer syntax when passing objects... I hope im wrong; but to work everywhere, main included, objects cant have sugar. since objects are functions, you can only pass their references as strings.
0そうだね
プレイ済み
返信[10]
親投稿
Jaxon SuperJax
@Kl'Dck Hul I vote that you ignore minecraft and keep on doing what you're doing. It's very promising.
0そうだね
プレイ済み
返信[11]
親投稿
calc84 calc84maniac
Is the underscore just a garbage variable to assign return values to? It might be a bit better to make _me a command that doesn't return any values. Also, out of curiosity, how is the current instance specified?
0そうだね
プレイ済み
返信[12]
親投稿
toxi toxibunny
Ah, I see this is something you're implementing yourself - I thought it was just examples of how to make functions in plain SmileBASIC. Phew! Yep, keep up the good work and ignore the minecraft nonsense :)
0そうだね
未プレイ
返信[13]
親投稿
Kl'Dck Hul HissingToaster
@calc84 - Afaik, you cant define a function that takes args and returns nothing. I get syntax errors if I try to call one without assignment, hence "_". me() accesses a copy of the heap data for an instance. right now it's stackless, and just overwrites the last reference.
0そうだね
プレイ済み
返信[14]
親投稿
calc84 calc84maniac
If you leave out the parentheses, it becomes a command rather than a function and doesn't return a value. It's like the difference between PUSH and POP().
1そうだね
プレイ済み
返信[15]
親投稿
raimondz raimondxz
@Kl'Dck Hul I know. I only suggested the use of # at the begin of the words because they are highlighted by the IDE. (And # is used for a few constants) By the way, this is SB3CC(I didn't created that). I think i will upload the translation with a bug fix between tomorrow or saturday. http://wiki.hosiken.jp/petc3gou/?Toukou%2FSmileBasic3-CustomCompiler
1そうだね
プレイ済み
返信[16]
親投稿
Kl'Dck Hul HissingToaster
@calc84 - F¥♭©√! I allocate that extra byte everywhere. It does feel kinda dirty NOT having parenthesis...
0そうだね
プレイ済み