Home | Reviews | GUIpedia | Forum | Fun500
pharoah | COBALT preview 1Quick preview of Cobalt's scripting language. The way it works now is that I can count to 10 using only
[code]
def{ 1 + }: ++
1
loop{
++ dup print
dup | 2009-03-17 | 10:49 PM |
Todd | Re:COBALT preview 1Looks like a combination of JavaScript, QB, and C++. | 2009-03-18 | 8:55 AM |
ksr | Re:COBALT preview 1I like it!
To me, though, the line
dup | 2009-03-18 | 12:36 PM |
pharoah | Re:COBALT preview 1You're right, I actually rewrote this. Here are the versions right from one of my test scripts:
[code]
def{
1 +
}: ++
(
This is an example of a cobalt script that uses recursion
to count from 1 to 10 without a formal loop construct.
)
def{
dup print cr ++ dup 10 | 2009-03-18 | 1:18 PM |
ksr | Re:COBALT preview 1Very nice indeed. How might the GUI functions be implemented? | 2009-03-18 | 2:32 PM |
pharoah | Re:COBALT preview 1I'm not sure yet. My plan right now is to just give programs a window and let them do whatever they want, then write the GUI stuff in the scripting language itself as a bunch of libraries. It will be easier to implement than some sort of event-driven system. | 2009-03-18 | 2:36 PM |
GUIs
2021 Brandon Cornell