Would anyone care if on day 1 of the Trump presidency when he signs all those Presidential orders that he immediately stops the need for DEF in any manufactured diesel engine going forward? #endDEF
def_s()
hires
_circ(99,99,99)
enddef
def_circ(x,y,r)
local n
circle x,y,r
n = r/2
if n > 3
_circ((x-n),(y-n),n)
_circ((x n),(y-n),n)
_circ((x-n),(y n),n)
_circ((x n),(y n),n)
endif
enddef
Please, someone to stop #rax to play with #dflat! 🤣
Exactly 👍🏾🤓
I decided not to have 'then', a bit like C I suppose 🤓 eg
10 def_max(a,b)
20 if a>b
30 return a
40 else
50 return b
60 endif
80 enddef
👍🏾🤓
(Had to redo this tweet as forgot syntax of my own language 🤣)
You have While/Wend, Repeat/Until and If/Else/EndIf. Assuming Def/EndDef are for procedures and functions then You don't need Goto or Gosub, tbh. Though "Then" would be nice :p
Req @smilebasic_com (@notohoho)
There's an endif, endloop and endcase..
Why is there no enddef?
One of my most frequent errors I make is typing enddef, and then getting "nested" errors.
Any chance you could add enddef as a duplicate to end?