[fpc-devel] Policy on reserving error numbers

Sven Barth pascaldragon at googlemail.com
Sat Oct 19 11:16:30 CEST 2019


J. Gareth Moreton <gareth at moreton-family.com> schrieb am Sa., 19. Okt.
2019, 03:52:

> Hi everyone,
>
> So I've run into a slight annoyance while developing support for pure
> functions.  The compiler will need new parser messages because of
> situations such as specifying the 'pure' directive when something in
> said function makes it not eligible (a warning). However, whenever a new
> error such as "parser_e_enumeration_out_of_range" is included, it
> ultimately causes a conflict in my branch and I have to shift all my
> numbers forward one.  Not a problem, just a little annoying, and I worry
> that when the patch is finally ready, it might take a while to be
> reviewed and, during that time, a new message is added and causes
> another clash.  Is there a policy on reserving a set of numbers for my
> work so I can rest assured they won't be overwritten? (I've made all of
> the messages that I *think* I will need).
>

No, there is not. Those simply have to be adjusted when a feature is
merged. It's not as if those are really complicated to integrate and the
msgidx and msgtxt files are generated, not merged anyway.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20191019/c625952c/attachment.html>


More information about the fpc-devel mailing list