トピック
Jaxon SuperJax

structs

I know these are not available smile basic so how do you structure your 'Objects'?
0そうだね
プレイ済み
返信[1]
親投稿
TN21 Trinitro21
I make arrays to hold data and program my code to do different things with the different indexes. That is what a struct is, right?
0そうだね
プレイ済み
返信[2]
親投稿
Jaxon SuperJax
Structs are different in that it defines a different type. Right now, in SB we pretty much only have strings and numbers. Using arrays will almost work, but they cannot hold both a number and string. Plus, if SB had proper structs, we could have an array of "struct" types.
0そうだね
プレイ済み
返信[3]
親投稿
Kl'Dck Hul HissingToaster
I made Lowerdash for this. smilebasicsource/page?pid=59 its got compile time dictionaries and modules: DICT d yo->"dawg" mind->"blown" END
0そうだね
プレイ済み
返信[4]
親投稿
Jaxon SuperJax
@Kl'Dck Hul Thanks! I'll be sure to check it out. I see you've been busy with that.
0そうだね
プレイ済み