we want structures! or I do anyway...

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

I think structures would be very nice, making the code look much better
and easier to write.
Call them structures, records or whatever. Just implement them to
Euphoria. (<-- hint to Robert)
I want to be able to do something like:

structure my_3d_points
integer x
integer y
integer z
end

structure my_3d_polygon
sequence poly[4] of my_3d_points   --I'd like this kind of syntax
end                                --fixed-length sequences please..

sequence new_obj[number_of_polygons] of my_3d_polygon

I want native routines built in to Euphoria, no third-party libraries
that forces you to call different routines to create structures, assign
values to the elements and so on. I want to be able to just write:

my_3d_polygon square
square[1].x  --for example...

I don't know if this is anything you (Robert) would like to implement,
but I think it would be a great feature.



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu