[fpc-pascal] Use a procedural type for declare a procedure\function
pascaldragon at googlemail.com
Thu Apr 20 11:36:06 CEST 2017
Am 20.04.2017 08:44 schrieb "Andrey M, Zubarev" <zamtmn at gmail.com>:
> Hi All,
> Why can't use procedural type for declare a procedure\function?
> Why ever allow the exact same signature? It's uncomfortable
> Maybe it makes sense to introduce into the language such a possibility?
No, that makes no sense. Function/procedures/methods are independent of of
function/procedure/message types, maybe even declared indifferent units not
related to each other and used together only in a third unit.
Also it would be harder to see easily which parameters a routine takes as
you'd need to check the corresponding type first.
(And if you now say that an IDE can help with that, well 1) not everyone
uses one and 2) the same could be said about your original problem)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal