Re: fake class in OE

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

[...]

include std/map.e 
include std/socket.e as sock 
 
? routine_id( "map:new" ) -- default namespace 
? routine_id( "sock:create" ) -- custom namespace 

-Greg

Yes, that's what I mean.
Then, you can use a constant to concat

constant ns = "sock:" 
sequence from_somewhere = "create" 
routine_id(ns & from_somewhere) -- equal to "sock:create" 

This is how I implement 'dynamic' plain OE modules.

Sara |mitgedanken|

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

Search



Quick Links

User menu

Not signed in.

Misc Menu