Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 942221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:14:18+00:00 2026-05-15T22:14:18+00:00

Most programing languages have ‘include library into your code’ function but where is function

  • 0

Most programing languages have ‘include library into your code’ function but where is function ‘include your code into library’?

I Mean push into other files from the source, rather than pull into from the consuming files.

Idea is simple – we have a library A with class B we want to extend B with some C functions but we do not want to do it by extending from B, but by extending B.

So if we had library like DLL with functions and we would like to add functions to that DLL with out crating new DLL, and keeping ability to call that new functions as if we were calling that first DLL.

Point is not in having DLL sources and modifying tham, and not in wrapping around all functions in that dll just for adding few new functions creating new dll, but in adding functionality into existing dll and getting that modified DLL back. With no wrapping around but with inserting inside.

If you find this question a QUESTION, please vote for reopening.

If you have something to add – please add – it’s comunity wiki.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:14:19+00:00Added an answer on May 15, 2026 at 10:14 pm

    This depends a lot on the programming language at hand.

    In C++, any module (because there are no modules) can add content to any namespace. You can link two different DLL’s both adding members to the same namespace.

    C# takes it a step further, not only can anyone add to any namespace, but you can use “extension methods” to add methods to existing classes.

    In Ruby, reopening classes is simply done by defining part of the class elsewhere, effectively having multiple definitions of a class. But they all refer to the same class, so at runtime, they all end up in the same one.

    In Lua you can reopen modules with the “module” function and add anything you want.

    None of this actually modifies the “source” of the original code – but they offer natural, seamless extensions to it, so it’s probably as close as you get.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Most somewhat modern programming languages have a standard library? It is my impression is
Most languages have some sort of date function where you really don't have to
In most programming languages you often have a namespace > files > classes >
This not a programming question but Most of the programmers using Eclipse should have
Most strongly typed programming languages have data types of min. 1 byte in size.
Traditionally most programming languages have priority of AND higher than priority of OR so
Another newbie (Common) LISP question: Basically in most programming languages there's a mean for
In most programming languages I have used you can do something like (where s
In most programming languages, arguments passed to a function are evaluated before the function
I understand the concepts of \t and \n in most programming languages that have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.