With keyword
Issue #190
resolved
Hello,
How to use the “WITH” keyword please in DWS? If it’s not implemented, what is the alternative?
Sometimes, it’s difficult to work without it.
Thank you.
Comments (3)
-
repo owner -
repo owner - changed status to resolved
-
reporter Thank you but finally, how to write this then in DWS?
//Decls type MyRec = record x, y: Integer; end; var rec: MyRec; //Usage with rec do begin x := 5; y := 20; end;
Only like this?
rec.x := 5; rec.y := 20;
So the standard action with the WITH keyword is not supported?
- Log in to comment
with is supported with explicitly named aliases only, below is an exemple taken from the test cases. It is essentially a combination of a “var” and a “begin” sub-block.