[fpc-devel] XML node dump feature

Ben Grasset operator97 at gmail.com
Tue Jun 25 17:31:39 CEST 2019


On Tue, Jun 25, 2019 at 1:20 AM Sven Barth via fpc-devel <
fpc-devel at lists.freepascal.org> wrote:

> Correct. Though considering that we're talking about *compile time* the
> compiler *could* treat consts (in {$J-} mode) as constants if pure
> functions are involved...
>

I'd be fine with the {$J-} requirement (I tend to use {$J-} most of the
time anyways, actually.)

Again, I'm aware all of this will take a while to implement, and will be an
incremental process. Overall though I think proper compile-time constant
initialization needs to be something `pure` eventually enables, as if it
doesn't then it just becomes "slightly-different-inlining". (And like
denisgolovan pointed out in another message, inlining should remain a
separate concept that can be mixed with pure, or not mixed with it,
depending on the use case. E.G. a C++ compiler will automatically inline
basically anything at -O3, but it will not let you use a non-constexpr
function to initialize an actual constexpr value.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190625/2a901f56/attachment.html>


More information about the fpc-devel mailing list