Re: fake class in OE
- Posted by mitgedanken Feb 26, 2021
- 1114 views
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|