Project

General

Profile

Design #1519

Interpreter fn Value::from can use std::move?

Added by John Abbott over 3 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
enhancing/improving
Target version:
Start date:
26 Oct 2020
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

Investigate whether the template fn Value::from (see Interpreter.H around lines 1422--1442) can avoid copying by using std::move (at least, in some cases).

This will include devising some tests.


Related issues

Related to CoCoA-5 - Bug #1514: Cocoa crashes when calling RingElemsClosed2020-10-22

Related to CoCoALib - Design #1446: Start using C++14 "move" capabilityIn Progress2020-03-12

Related to CoCoALib - Design #1225: Move to C++14 (skipping C++11)In Progress2018-09-06

History

#1 Updated by John Abbott over 3 years ago

  • Related to Bug #1514: Cocoa crashes when calling RingElems added

#2 Updated by John Abbott over 3 years ago

  • Related to Design #1446: Start using C++14 "move" capability added

#3 Updated by John Abbott over 3 years ago

  • Related to Design #1225: Move to C++14 (skipping C++11) added

#4 Updated by John Abbott over 3 years ago

  • Description updated (diff)

The template function for lists (of all sorts) is actually called LIST::LIST... mmm, is that a ctor?
It is defined starting on line 1433 of Interpreter.H

#5 Updated by John Abbott about 2 years ago

  • Target version changed from CoCoA-5.4.0 to CoCoA-5.4.2

Also available in: Atom PDF