comp.lang.ada
 help / color / mirror / Atom feed
From: David Botton <david@botton.com>
Subject: Re: Self-modifying code
Date: Sun, 12 Jul 2015 08:40:31 -0700 (PDT)
Date: 2015-07-12T08:40:31-07:00	[thread overview]
Message-ID: <3e374c9e-f4d9-473d-b2b7-f72d144a3c37@googlegroups.com> (raw)
In-Reply-To: <RMSdnblaxM4RyD_InZ2dnUU7-SOdnZ2d@supernews.com>

> So, except for shared (loaded at runtime) or dynamic (loaded on demand) 
> libraries, the answer is NO!

So not true... I've done it and I am sure many others have here too. In the old days it was a much more common technique when space was tight. Almost any language can do it, and no language in and of itself can really prevent it.

Ada prevents you from shooting yourself in the foot by mistake, but anyone can do it on purpose.

> Note: Dynamic libraries are normally a complete sub-system of routines 
> not just a simple single function type plug-in.

Not true, I'd almost say the majority of dynamic libraries I've used (outside basic std libs) are components. You would be surprised how often those dynalibs have no more than one function, say a factory to an IUknown interface etc.

Also tons of plugin APIs, etc. I've used in the past with one function access, etc.

Dynamic libs are a very solid way to swap code around at runtime.

David Botton


  reply	other threads:[~2015-07-12 15:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-12  1:57 Self-modifying code ferrariv65
2015-07-12  3:24 ` David Botton
2015-07-12  4:38 ` Paul Rubin
2015-07-12  5:09   ` David Botton
2015-07-12  5:53     ` Paul Rubin
2015-07-12  9:10       ` Georg Bauhaus
2015-07-12 11:54 ` anon
2015-07-12 15:40   ` David Botton [this message]
2015-07-27 11:29 ` Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox