Re: Structs

new topic     » goto parent     » topic index » view thread      » older message » newer message

I don't think adding to OOP to Euphoria would be a good idea. The idea of Euphoria is to be simple. I know structs are kinda like a low-key OOP, but they're still pretty easy to understand. Like my idea of structs (I did post about this earlier, but restating my position on keeping structs simple)

struct player 
  integer health 
  atom x_pos,y_pos 
  string name 
end struct 
 
player.health = 100 
player.x_pos = 15 
player.y_pos = 15 
player.name = "bob" 

That would be my idea for structs, I think a couple other users had similar idea to mine.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu