Labels as values and threaded-code interpretation
Alex Rønne Petersen
alex at lycus.org
Sun Jun 2 09:48:58 PDT 2013
On 02-06-2013 08:44, Paulo Pinto wrote:
> Am 02.06.2013 06:49, schrieb Walter Bright:
>> On 6/1/2013 7:35 PM, Alex Rønne Petersen wrote:
>>> On 01-06-2013 09:59, bearophile wrote:
>>>> "Recently" the Python C interpreter was modified and speed up thanks to
>>>> this non-standard feature. CPython source code has two versions, one
>>>> with computed gotos and one without, to compile it even if your C
>>>> compiler doesn't support them or their GNU-C syntax.
>>>
>>> I don't think there's any question as to the usefulness (and
>>> essentialness) of
>>> this feature. I'm very close to just writing most of the interpreter
>>> in C over a
>>> triviality like this.
>>
>> To be pedantic, C and C++ don't have that feature. Some compilers add it
>> as an extension.
>
> I always have fun in public forums making people aware that what they
> think is C or C++ code is actually compiler defined behaviour.
>
> Not much people seem to care to read language standards. :)
>
> --
> Paulo
>
I am perfectly aware that it's a GNU C extension.
--
Alex Rønne Petersen
alex at alexrp.com / alex at lycus.org
http://alexrp.com / http://lycus.org
More information about the Digitalmars-d
mailing list