[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The madness of ad hoc special IDs
|
From: |
Markus Armbruster |
|
Subject: |
Re: The madness of ad hoc special IDs |
|
Date: |
Sat, 27 May 2023 09:22:30 +0200 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Thomas Huth <thuth@redhat.com> writes:
> On 23/05/2023 14.31, Markus Armbruster wrote:
> ...
>> To stop creating more moles, we need to reserve IDs for the system's
>> use, and let the system pick only reserved IDs going forward.
>
> Just something to add here: We already have a function for generating
> internal IDs, the id_generate() function in util/id.c ... our
> convention is that we use "#" as prefix for those, so for new code
> (which is not affected by migration backward compatibility problems),
> we should maybe take care of always using that prefix for internal
> IDs, too.
Valid point.