xsharp.eu • Statement/keyword to end a METHOD declaration in a CLASS?
Page 1 of 1

Statement/keyword to end a METHOD declaration in a CLASS?

Posted: Wed Apr 17, 2019 4:29 pm
by Anonymous
Is there a keyword to end a Method definition besides just having the code end with a RETURN statement?? It looks so naked to me without a closing key work. There is Class Blah / End Class. Is there something similar for Method Blah ..... End Method ??

Here's what I am dreaming of:

Code: Select all

Class Blah

    Constructor()
        Return
    End Constructor


    Public Method Blah() as Boolean

        Return True

    End Method

End Class

Statement/keyword to end a METHOD declaration in a CLASS?

Posted: Wed Apr 17, 2019 4:37 pm
by robert
Matt,
Some wishes are easier to fulfill then others, especially when no new keywords are needed:
this is planned for the next release, along with other END keywords:

END ACCESS
END ASSIGN
END METHOD
END CONSTRUCTOR
END DESTRUCTOR
END OPERATOR
END PROCEDURE / END PROC
END FUNCTION / END FUNC
END VOSTRUCT
END UNION

and END FOR as alias for NEXT

All will be optional to make sure we stay compatible with previous builds.

Robert