Re: dynamic namespaces

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

yep <eucode> does make it easier to read, but that was my first ever post, did'nt read the Creole Help!

don't know myself what the dev roadmap is, but hopefully some kind of 00/dynamic module at some time in future would be great.

so,

1) would ideally like to have collections of objects without having to reference items via sequence index/offset. particularly complex objects (ie: 'C' to euphoria structs)

2) currently, for each object that uses a common module function, passing in the object as an extra parameter to modify it seems to be the most obvious/cleanest way to modify the object.

predeclaring each object into its own namespace

include person.e as tom 
include person.e as dick 
include person.e as harry 

is impractical/unusable when interfacing to a 'C' library that returns a dynamic length list of structures

again, i know that we can create sequences and offsets, but i believe that a dynamic namespace would be the ideal.

it would provide for a far cleaner interface for managing objects, where each dynamic instance would have obviously have its own copies of module global vars, and shared procedures/functions, which in many cases for me would also do away with the need for pass by reference

apart from my gripes, it's still a great language, one of the few that allows me to 'code while thinking'

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

Search



Quick Links

User menu

Not signed in.

Misc Menu