r/C_Programming • • Jun 11 '26

mimicking of function overloading

25 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/Certain-Flow-0 Jun 11 '26

Overriding or overloading??

1

u/marc_b_reynolds Jun 12 '26

With a pointer you have complete (input/output) signature of the function so a reasonable compiler can take a constant pointer and lower to fixed function call (or even inline it) (visual-c fails here AFAIK) which gives overriding. The internal memory mangers of WebKit mimic traits by doing this.