Re: Why do People Use Euphoria?

new topic     » goto parent     » topic index » view thread      » older message » newer message
SDPringle said...

Do you thnk that structs should be sequences with names rather than numbers for indexing?

I can imagine that we could get some surprises with the struct branch. Take the tm struct for example. Here each member is an integer, or in C terms, ints. Can we have a user defined type combined with this struct?

I'd rather structs work similar to how they work in C. Something along the lines of

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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu