proposal for general dup function

Dan dbdavidson at yahoo.com
Mon Dec 10 11:55:18 PST 2012


On Monday, 10 December 2012 at 19:40:52 UTC, Jacob Carlborg wrote:
> On 2012-12-10 20:37, Jacob Carlborg wrote:
>
>> You might have the same problem with structs. That is, if it's 
>> possible
>> to have const/immutable files which are not initialized in the 
>> declaration.
>
> That should have been "fields".

You are correct. const or immutable fields won't work. But then, 
if you had a field that was const or immutable you might as well 
make it static. Any problems with gdup in that case would be the 
same you would see if you wanted to implement your own.


More information about the Digitalmars-d mailing list