![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | does .dot-sourcing a set of functions compile these into MSIL? I understand that the functions are loaded into memory but I'm not sure whether they are loaded as PS script: what appears when you type dir function:<Func Name> | fl -property Definition or whether the actual function that you invoke has been processed to IL just curious bob |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: does .dot-sourcing a set of functions compile these into MSIL? It will be added the function list as if you typed it directly into the shell. Brandon Shell --------------- Blog: http://www.bsonposh.com/ PSH Scripts Project: www.codeplex.com/psobject BL> I understand that the functions are loaded into memory but I'm not BL> sure whether they are loaded as PS script: what appears when you BL> type BL> BL> dir function:<Func Name> | fl -property Definition BL> BL> or whether the actual function that you invoke has been processed to BL> IL BL> BL> just curious BL> BL> bob BL> |
My System Specs![]() |
| | #3 (permalink) | ||||||||||||
| Guest | Re: does .dot-sourcing a set of functions compile these into MSIL? "Bob Landau" <BobLandau@xxxxxx> wrote in message news:46877E56-F507-4C4E-8499-5EEAD30D3E0D@xxxxxx
then check your script for parse errors like so: & { . .\funcs.ps1 } -- Keith | ||||||||||||
My System Specs![]() | |||||||||||||
| | #4 (permalink) | ||||||||||||
| Guest | Re: does .dot-sourcing a set of functions compile these into MSIL Thats want I thought (not what I had hoped) . I guess this is one an incentive for writting a cmdlet rather than a function if the script is large "Brandon Shell [MVP]" wrote:
| ||||||||||||
My System Specs![]() | |||||||||||||
| | #5 (permalink) | ||||||||||||
| Guest | Re: does .dot-sourcing a set of functions compile these into MSIL? On Oct 9, 2:00 pm, Bob Landau <BobLan...@xxxxxx> wrote:
- Oisin / x0n. | ||||||||||||
My System Specs![]() | |||||||||||||
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dot sourcing multiple code files | henry Macoy | PowerShell | 3 | 10-01-2007 01:18 PM |
| sourcing a file in a script | JasonM | PowerShell | 5 | 08-31-2007 03:22 PM |
| WMP 11 Library won't compile | encee | Vista music pictures video | 5 | 11-15-2006 06:33 AM |
| Pre-compile script? | Nick Howell | PowerShell | 0 | 06-15-2006 07:57 AM |
| Why don't any of the 3D samples compile? | JD | Avalon | 2 | 03-03-2006 10:26 PM |