On Mon, Feb 26, 2018 at 5:51 PM, Philippe Coval <philippe.coval@osg.samsung.
com> wrot

...

>
>> Sure but some filesystems don't like it,
>>
>
> Explain please?
> ...
>
>
> If FS is not case sensitive, then you'll could have to files seen as same
> name,
> so it can be dangerous (which one will be included ? first occurence in
> include path ?)
>

Ah, ok, I guess I misread your original.

>
>
>
>     Renaming to .hpp suffix prevent the problem.
>>
>>     Note, one other approach would be to use namespaces
>>
>>     Like:
>>        #include <iotivity/csdk/ocprovisioningmanager.h> vs
>>        #include <iotivity/oc/ocprovisioningmanager.h> or similar
>
>
> There are no namespaces in C as I am sure you know.  A file path is not a
> namespace.
>
>
> yes not a C++ namespace to put classes in,
> but you got my point don't you ?
>

I believe so, but names are (very very) important.  We should not talk
about namespaces in C.I'm inclined to think in terms of "package", probably
because Ive been working a lot with Bazel.

g
_______________________________________________
iotivity-dev mailing list
iotivity-dev@lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to