Hi, I would like to know if there is any alternative option for "With" in
vb.net and other basic dialects. In vb.net, assume that this is our object ;
Structure Window
Public Title As String
Public Width As Integer
Public Height As Integer
End Structure
Run
Then we can use with like this.
With Window
.Title = "New Title"
.Width = 800
.Height = 600
End With
Run
By using with, we don't need to use "Window." everywhere. So, this is my
question.
1. Is there any alternate option for "With" in nim ?
2. If not, is it possible to create one with the help of templates ? If so,
then please give me some direction.
Thanks in advance