Re: Why do People Use Euphoria?
- Posted by petelomax Jul 03, 2022
- 2366 views
Icy_Viking said...
struct PLAYER integer health atom x,y end struct PLAYER new_player new_player.health = 100
I think structs in 4.2 are going to work something similar to that, give or take.
That works right now in Phix, apart from the fact you need to add " = new()" on the new_player declaration, otherwise it's unassigned variable time.
For those thinking(/claiming) structs will make a big difference, I've only seen ONE person adopt Phix since it got them, now nearly three years ago.
SDPringle said...
Can we have a user defined type combined with this struct?
Of course, why on earth would you think not?