Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Scheme Programming Language

how to run library safely?


hi

I have a question:
how do I run other's people library safely?
for example if I use "load" to load a library file,
how do I confine the library so that it doesn't rewrite
some of my definition. (don't tell me I have to grep
through the file and do a intersection of both files.)
I mean as soon as I do a "load", some of my own code
will be be gone.... thanks

math idiot writes:
> how do I run other's people library safely?
> for example if I use "load" to load a library file,
> how do I confine the library so that it doesn't rewrite
> some of my definition. (don't tell me I have to grep
> through the file and do a intersection of both files.)
> I mean as soon as I do a "load", some of my own code
> will be be gone.... thanks

You load this library in its own module.  Module are at this point no
standard in Scheme, but most "serious" Scheme implementations have
some kind of module system.  Each module has a separate namespace, so
that identifier names do not collide.  See the documentation of the
Scheme implementation you're using for details.

--
Emlio C. Lopes                            Ich leb und wei nit wie lang,
Munich, Germany                            ich stirb und wei nit wann,
                                           ich fahr und wei nit wohin,
                 (Martinus von Biberach)   mich wundert, dass ich frhlich bin!

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc