Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
Module Module1
|
||||
|
||||
Function A(v As Boolean) As Boolean
|
||||
Console.WriteLine("a")
|
||||
Return v
|
||||
End Function
|
||||
|
||||
Function B(v As Boolean) As Boolean
|
||||
Console.WriteLine("b")
|
||||
Return v
|
||||
End Function
|
||||
|
||||
Sub Test(i As Boolean, j As Boolean)
|
||||
Console.WriteLine("{0} and {1} = {2} (eager evaluation)", i, j, A(i) And B(j))
|
||||
Console.WriteLine("{0} or {1} = {2} (eager evaluation)", i, j, A(i) Or B(j))
|
||||
Console.WriteLine("{0} and {1} = {2} (lazy evaluation)", i, j, A(i) AndAlso B(j))
|
||||
Console.WriteLine("{0} or {1} = {2} (lazy evaluation)", i, j, A(i) OrElse B(j))
|
||||
|
||||
Console.WriteLine()
|
||||
End Sub
|
||||
|
||||
Sub Main()
|
||||
Test(False, False)
|
||||
Test(False, True)
|
||||
Test(True, False)
|
||||
Test(True, True)
|
||||
End Sub
|
||||
|
||||
End Module
|
||||
Loading…
Add table
Add a link
Reference in a new issue