Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does fsi.ShowDeclarationValues work?

According to the MSDN documentaion:

When set to false, disables the display of declaration values in the output of the interactive session.

However, the following sample interactive session seems to contradict that summary.

> let x = 42;;

val x : int = 42

> fsi.ShowDeclarationValues <- false;;

val it : unit = ()

> let y = 42;;

val y : int

I was not expecting the last line above.

Have I misunderstood something? Can anyone confirm if this is a bug?

Thanks.

like image 284
pblasucci Avatar asked Apr 11 '26 09:04

pblasucci


1 Answers

Looks to me that it didn't show the value in the last line, only the name and type of the binding.

like image 148
Daniel Avatar answered Apr 15 '26 20:04

Daniel