[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: There is no returning

From: Ludovic Courtès
Subject: Re: There is no returning
Date: Sun, 17 Nov 2013 22:18:38 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Paul Eggert <address@hidden> skribis:

> A better solution, if you want to be portable to
> MSVC, is to use _Noreturn instead of noreturn.
> This is for reasons described in stdnoreturn.in.h.
> '_Noreturn' is a bit ugly; if you don't care about
> MSVC, then __attribute__((__noreturn__)) is
> a good way to go.

Not sure what you mean by “ugly”, but ‘_Noreturn’ has the huge advantage
of being a reserved identifier per POSIX (info "(libc) Reserved Names"),
while ‘noreturn’ is not.

What would you think of sticking to the standard and less problematic
‘_Noreturn’ identifier in Gnulib?

(I also agree that it’s better for Guile’s public headers to use
‘__noreturn__’, but using ‘noreturn’ was not completely silly either.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]