HBUtil: new and extended commands (more modern and efficient)

81 views
Skip to first unread message

Hurricane

unread,
Jun 20, 2025, 3:45:25 PMJun 20
to Harbour Users
Suggestions for more modern and efficient code


1 - Declaration & initialization. Syntax:    
LOCAL | STATIC | PRIVATE | PUBLIC <var, ...> AS <TYPE>

2 - runtime parameter validation: Functions and methods. Syntax:
FUNCTION | PROCEDURE | METHOD <name>( <var> [ = <v> | AS <TYPE> | AS CLASS <name> | AS BYREF ] [, <varN> ...] )
and attached image

3 - REQUIRED <var, ...> RETURN | THROW. Syntax:
REQUIRED <var, ...> [SIGNAL <name> | EVAL <expr> ] [ RETURN [<v>] | THROW ]
   
4 - Searches a value in another value. Syntax:
<v> IN <Value> // String, Array, Hash

5 - return type validation at runtime: Functions and methods


I implemented items 1 to 4

Regards,
Hurricane
Site | Harbour Developers | Facebook | Blog

junho de 2025 às 04:47:10 UTC-3, Hurricane escreveu:

cmd - function.png
Reply all
Reply to author
Forward
0 new messages