access function name from the function (is it possible?)

0 votes
asked Jul 23, 2017 in Wanted features by boshka (3,940 points)
Am i able to do something like this (want the function name to be displayed in the note)?

@startuml

!definelong my_funct()

     note right

       _SELF_NAME_

       has been called

     end note

!enddefinelong

 

my_funct()

@enduml
commented Jan 26, 2018 by Anthony-Gaudino (5,720 points)
Only way I know to do this would be:

@startuml
!definelong my_funct(name = "my_funct()")
     note right

       name

       has been called

     end note
!enddefinelong

my_funct()
@enduml
commented Jan 26, 2018 by boshka (3,940 points)
yah, a workaround, but still works strange - displayes cropped:

"my_func" in my eclipse, not "my_funct()"

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...