1. question on structures again

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.

new topic     » topic index » view message » categorize

2. Re: question on structures again

That looks like a good idea.

new topic     » goto parent     » topic index » view message » categorize

3. Re: question on structures again

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu