tooltiperror
Super Moderator
- Reaction score
- 231
>Things like this are just not possible:
Well, they are, but you don't have typesafety. Which, IMO, is good. I like the idea of a more dynamically typed language.
You COULD do some typesafety if you wanted, that's child's play.
Ignore Nestharus for the most part, he thinks JASS is C.
Well, they are, but you don't have typesafety. Which, IMO, is good. I like the idea of a more dynamically typed language.
JASS:
struct Card extends array
method play takes nothing returns nothing
// the usual card playing
endmethod
implemnent Alloc
endstruct
globals
private Card DEFAULT_CARD=Card.create()
endglobals
struct SpecialCard extends array
delegate Card DEFAULT_CARD
method play takes nothing returns nothing
// special card playing stuff
endmethod
endstruct
function PlayCard takes integer card returns nothing
call card.play()
endfunction
You COULD do some typesafety if you wanted, that's child's play.
Ignore Nestharus for the most part, he thinks JASS is C.