In our previous episode, Ryan Joseph said:
> All structures have an automatically-generated memberwise initializer, which 
> you can use to initialize the member properties of new structure instances. 
> Initial values for the properties of the new instance can be passed to the 
> memberwise initializer by name:
> 
> var vga = Resolution(width: 640, height: 480)

Scripting languages often already by default initialize a datatructure, and
then such language constructs only performs additional initialization.

Pascal and similar lowlevel languages don't by default initialize them, and 
then whole initialization is
more logical.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to