Re: Documentation re -betterC compatibility with standard library functions

2025-01-28 Thread Lance Bachmeier via Digitalmars-d-learn
On Tuesday, 28 January 2025 at 13:01:56 UTC, DLearner wrote: Is there a definitive list somewhere of standard library functions that work with -betterC? For example, the following code fragment (taken from the library docs) does not work with -betterC. ``` extern(C) void main() { import st

Re: Documentation re -betterC compatibility with standard library functions

2025-01-28 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, January 28, 2025 10:41:31 AM MST DLearner via Digitalmars-d-learn wrote: > On Tuesday, 28 January 2025 at 15:00:13 UTC, Jonathan M Davis > wrote: > [...] > > > > > -betterC was originally intended to be a tool for making it > > easier to port C code to D code (after which, the idea was

Re: Documentation re -betterC compatibility with standard library functions

2025-01-28 Thread monkyyy via Digitalmars-d-learn
On Tuesday, 28 January 2025 at 13:01:56 UTC, DLearner wrote: Is there a definitive list somewhere of standard library functions that work with -betterC? basicly none; phoboes causally imports itself and selective imports must parse the whole import still If you make a custom runtime or start

Re: Documentation re -betterC compatibility with standard library functions

2025-01-28 Thread DLearner via Digitalmars-d-learn
On Tuesday, 28 January 2025 at 15:00:13 UTC, Jonathan M Davis wrote: [...] -betterC was originally intended to be a tool for making it easier to port C code to D code (after which, the idea was that -betterC would no longer be used, and you would just have a normal D program). [...] - Jo

Re: Documentation re -betterC compatibility with standard library functions

2025-01-28 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, January 28, 2025 8:04:36 AM MST Dennis via Digitalmars-d-learn wrote: > On Tuesday, 28 January 2025 at 15:00:13 UTC, Jonathan M Davis > wrote: > > but we provide no guarantees that any code that works with > > -betterC right now will continue to do so, and we do not intend > > to add -

Re: Documentation re -betterC compatibility with standard library functions

2025-01-28 Thread Dennis via Digitalmars-d-learn
On Tuesday, 28 January 2025 at 15:00:13 UTC, Jonathan M Davis wrote: but we provide no guarantees that any code that works with -betterC right now will continue to do so, and we do not intend to add -betterC support. So, if you use something from Phobos that happens to work with -betterC today,

Re: Documentation re -betterC compatibility with standard library functions

2025-01-28 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, January 28, 2025 6:01:56 AM MST DLearner via Digitalmars-d-learn wrote: > Is there a definitive list somewhere of standard library > functions that work with -betterC? > > For example, the following code fragment (taken from the library > docs) does not work with -betterC. > ``` > exte