Did you try:
found_child_class_name: STRING
do
Result := ({G}).name
end
--
Eric Bezault
mailto:
er...@gobosoft.com
http://www.gobosoft.com
On 19/10/2018 20:52, Gachoud Philippe wrote:
> What I'd like to do is to set the router of a EWF in a class that
> depending on the handler will set the router in a different way.... try
> to be more clear even if I'm maybe wrong with my design
>
> class SOME_WSF_RESOURCE_HANDLER[G -> PARENT]
>
> inherit
> WSF_RESOURCE_HANDLER_HELPER
>
> feature
>
> set_handler
> do
> router.handle ("/Father", ...)
> router.handle ("/Father/" + found_child_class_name, ...)
> end
>
> found_child_class_name: STRING
> do
> Result := G.class_name
> end
>
>
> *The only way I find in that case is to redefine the set_handler in an
> inheriting class or 2, or 3 depending on the decendents of G*
>
> On Friday, October 19, 2018 at 3:49:31 PM UTC-3, Gachoud Philippe wrote:
>
>
> What I'd like to do is to set the router of a EWF in a class
> that depending on the handler will set the router in a different
> way.... try to be more clear even if I'm maybe wrong with my design
>
> class SOME_WSF_RESOURCE_HANDLER[G -> PARENT]
>
> inherit
> WSF_RESOURCE_HANDLER_HELPER
>
> feature
>
> set_handler
> do
> router.handle ("/Father", ...)
> router.handle ("/Father/" + found_child_class_name,
> ...)
> end
>
> found_child_class_name: STRING
> do
> Result := G.class_name
> end
>
>
>
>
>
> On Friday, October 19, 2018 at 3:29:17 PM UTC-3, Gachoud Philippe wrote:
>
> As described here
> <
https://stackoverflow.com/questions/52898033/eiffel-is-there-a-way-to-test-a-given-generic-parameter-of-a-class-without-any>,