Templates problem

data pulverizer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 7 14:41:20 PDT 2016


On Wednesday, 7 September 2016 at 21:25:30 UTC, jmh530 wrote:
> Consider a potential use case. You have an existing data frame 
> and you want to add a column of data to it that has a different 
> type than the existing frame. I imagine the function call would 
> look something like:
> auto newFrame = oldFrame.addCol(newData);

Yes, but from a usability point of view this would be very poor - 
forcing the user to create a new variable each time they modified 
a table. I am aware that databases do this but it is hidden away.

> ... I only wonder if you would lose performance if wanted 
> something fully dynamic. A static approach is a good starting 
> place.

Yes you would, which is why I see the hyper-meta route as being 
the potential solution to this issue.




More information about the Digitalmars-d-learn mailing list