[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Naming question for get_property, set_property
From: |
Han-Wen Nienhuys |
Subject: |
Re: Naming question for get_property, set_property |
Date: |
Wed, 12 Feb 2020 08:00:42 +0100 |
On Tue, Feb 11, 2020 at 10:17 PM David Kastrup <address@hidden> wrote:
> > the reason being that it is better if the source code looks like plain
> C++,
> > even though they might actually be macros that do advanced magic. Having
> > normal looking source code helps editors and tooling (astyle,
> clang-format)
> > make sensible decisions.
>
> get_property (pointer, "property")
> set_property (pointer, "property", value);
>
> would achieve that as well. Doesn't look like a member function, but
> the thing looking like a member function also never actually was one.
>
>
Earlier you said:
"and for "reasons" I
need to know the type, so the call would become something akin to"
how does this work for the above?
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
Re: Naming question for get_property, set_property, Han-Wen Nienhuys, 2020/02/11