Unexpected aliasing

Basile B. b2.temp at gmx.com
Tue Nov 12 08:15:20 UTC 2019


On Tuesday, 12 November 2019 at 07:59:39 UTC, Bastiaan Veelo 
wrote:
> On Monday, 11 November 2019 at 20:05:11 UTC, Antonio Corbi 
> wrote:
>> [...]
>
> Thanks, Antonio. My problem is that the length of the array 
> should be a built-in property of WrapIntegerArray (immutable in 
> this case); what I'd actually want is a constructor without 
> arguments. Jonathan's suggestion of using a factory function 
> comes closest to that.
>
> Bastiaan.

I'm curious to know what is the equivalent in Pascal that your 
transpiler fails to translate since Pascal records don't have 
constructors at all. Maybe you used an old school 'Object' ?


More information about the Digitalmars-d-learn mailing list