# Embedded F# script

**URL:** <https://forums.fsharp.org/t/embedded-f-script/458>\
**Category:** General\
**Created:** [September 5, 2018, 9:27am UTC](https://forums.fsharp.org/t/embedded-f-script/458 "2018-09-05T09:27:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidFalco](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DavidFalco](https://forums.fsharp.org/u/DavidFalco)\
**Post date:** [September 5, 2018, 9:27am UTC](https://forums.fsharp.org/t/embedded-f-script/458/1 "2018-09-05T09:27:13Z")

</div>

I am experimenting with embedding F# script into a .Net framework application and I would like to clarify a few things (these questions may be more to do with dynamic assemblies in general):

If I redefine a variable is the original value eventually garbage collected (assuming the variable is not captured) ? e.g.  
let x = obj() // what happens to this obj?  
let x = obj() // new definition of x

Similarly for functions:

let f i = i + 1 // what happens to f if I redefine it?  
let f i = i + 2 // new definition of f
