Date: Thu, 9 Jun 2022 12:10:31 +0000
[Boris]
> For example, the implementation partition may include a unit test
> (because that's the only way to access the private parts) which
> is registered with the test harness.
How would that work in practice (concrete example)?
Note: I am not saying it is impossible. I just wanted to make sure that we are making the same set of assumptions.
-- Gaby
-----Original Message-----
From: Boris Kolpackov <boris_at_[hidden]>
Sent: Thursday, June 9, 2022 12:56 AM
To: Gabriel Dos Reis via SG15 <sg15_at_[hidden]>
Cc: C++ Core Language Working Group <core_at_[hidden]>; Gabriel Dos Reis <gdr_at_[hidden]>; Nathan Sidwell <nathan_at_[hidden]>
Subject: Re: [SG15] unimported implementation partitions
Gabriel Dos Reis via SG15 <sg15_at_[hidden]> writes:
> How would a program observe that an implementation partition isn't
> imported but is relevant to the behavior of the entire program?
The implementation partition can register itself (as part of the
static initialization) in some registry.
For example, the implementation partition may include a unit test
(because that's the only way to access the private parts) which
is registered with the test harness.
> For example, the implementation partition may include a unit test
> (because that's the only way to access the private parts) which
> is registered with the test harness.
How would that work in practice (concrete example)?
Note: I am not saying it is impossible. I just wanted to make sure that we are making the same set of assumptions.
-- Gaby
-----Original Message-----
From: Boris Kolpackov <boris_at_[hidden]>
Sent: Thursday, June 9, 2022 12:56 AM
To: Gabriel Dos Reis via SG15 <sg15_at_[hidden]>
Cc: C++ Core Language Working Group <core_at_[hidden]>; Gabriel Dos Reis <gdr_at_[hidden]>; Nathan Sidwell <nathan_at_[hidden]>
Subject: Re: [SG15] unimported implementation partitions
Gabriel Dos Reis via SG15 <sg15_at_[hidden]> writes:
> How would a program observe that an implementation partition isn't
> imported but is relevant to the behavior of the entire program?
The implementation partition can register itself (as part of the
static initialization) in some registry.
For example, the implementation partition may include a unit test
(because that's the only way to access the private parts) which
is registered with the test harness.
Received on 2022-06-09 12:10:35