Re: dynamic namespaces

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

euphoria already provides namespaces for data hiding, but would love to see dynamic namespaces in some future release to allow for a slightly more formal oo/class based representation.

example :

-- reserved keyword   : dynamic (auto ?) 
-- reserved functions : constructor(), destroy() 
 
include class.person.e as person 
 
sequence people 
 
people = repeat({}, 10) 
for i = 1 to 10 do 
   people[i] = person:dynamic 
end for 

OR

sequence people = repeat(person:dyamic, 10)

any thoughts?

First thought: the <eucode> tag makes it easier to read posted code. smile

It's not clear to me what this code does.

Previously, I think we had a longer term roadmap than 4.0, though maybe it was just talk...But my recollection (or maybe just my recommendation) was that some form of OO be targeted for 5.0 or thereabouts.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu