Skip to content

Old syntax <result, arg1, arg2...> for signals/slots is commented @deprecated but not marked as such to C++ or in DISABLE_DEPRECATED #86

Closed
@db-src

Description

@db-src

Hello! In v2, the source macros for signal.h and slot.h have this:

image

The deprecation is only hinted at by the Doxygen comment, but it is not removed by the DISABLE_DEPRECATED macro or warned via [[deprecated]] attribute or anything.

So, users (like me!) may only find out about this by accident, and realise quite late they'll need to use the < result (arg1, arg2...) > syntax in v3. This causes a missed opportunity to future-proof code earlier. Literally: I only noticed this by sheer luck in a doc-comment tooltip in VS Code, of all places. ;-) Until then, I thought v2 and v3 simply differed in syntax, not that v2 supported and in fact preferred the v3 syntax.

Is it possible that the source m4 files can be fixed, so the emitted header will mark these versions as deprecated, as with other/working deprecated symbols?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions