1. question on structures again
- Posted by begin Sep 02, 2018
- 1060 views
hi,
i still have a mind problem with structures which would be really nice to have (in my mind). could anybody kind if give me an example for:
structure ListCapsule object andlist object orlist object rules object certainties end -- or some how else ListCapsule abc -- create an variable for it
how could i realize this in euphoria to have an easy, structured access to the lists (ListCapsule.andlist) and gain readability for the program. it would be nice to be able to extend the structure maybe like
structure ListCap extends ListCapsule atom xx sequence yy end
thanx for any help or suggestion.
2. Re: question on structures again
- Posted by SDPringle Sep 02, 2018
- 1036 views
That looks like a good idea.
3. Re: question on structures again
- Posted by begin Sep 02, 2018
- 1022 views
Thanx. wouldn't be the overkill if you could do:
structure ListCapsule object andlist object orlist object rules object certainties procedure doprocedure(atom a, atom b) function dofunction(atom a, atom b) ListCapsule(object yy) ListCapsule() end -- or some how else
just as oberon, easy, simple minimum of keyword ans a whole new perspective - and here you find users.
structure ListCap extends ListCapsule atom xx sequence yy function dofunction(atom a, atom b) ListCap(atom yy) ListCap() end
an object, no multiple inheritance - just Wirth plain, clear and easy. we thought that this could open a whole new universe for programmers.
richard