help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: inline function expansion


From: Emanuel Berg
Subject: Re: inline function expansion
Date: Mon, 08 May 2023 02:21:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Lynn Winebarger wrote:

>> Isn't the idea of inlining that the behaviour/effect of
>> invoking a function shouldn't change, just that the
>> resulting code might be more efficient?
>
> The main thing I am interested in is the ability to do
> compile-time evaluation on constant expressions.

What exactly are "constant expressions" in the context of
this discussion?

The same as this?

  https://www.stroustrup.com/sac10-constexpr.pdf

> I'm trying to design/implement a way of defining generic
> methods so that the specialization may be determined (or
> explicitly constructed) at compile time and compiled to
> a non-generic function call, and left to dynamic
> dispatch otherwise.

Okay, so what would be the gain(s) of having such
a capability?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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