-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Would love to see something like this in the future
inline variables like in C, and variable lifetime per block
program CPas;
Begin
const X : int32 = 1;
var Y : ^int32:= @X;
Y^:= 2;
WriteLn('X := ', X);
// Code Block
begin
var Z : string = 'Hello from BlockA';
WriteLn(Z);
end;
// this should not compile not in the same block
WriteLn('Can I access Z? = ', Z);
End. fibodevy, tugrultamturk, shaunroselt, antayirp and dtpfl
Metadata
Metadata
Assignees
Labels
No labels