History

Add type_descriptor::is_equal() function. - Replace pointer and use function throughout VM Complete implementation of vm_array_t::copy_from() which supports the slicela instruction.

arr committed 9 years ago

Commit 7838bae1 parent 5ef656f5 files · +30 −12Browse files

Showing the changes to src/vm/list.cpp (1 of 5 files). Show all

Unified · Split

src/vm/list.cpp+1−1
@@ -90,7 +90,7 @@ void vm_list_t::set_tail(vm_list_t *new_tail) · 89 unmodified lines
90{90{
91 if (new_tail != nullptr)91 if (new_tail != nullptr)
92 {92 {
93 if (new_tail->get_element_type() != _element_type)93 if (!new_tail->get_element_type()->is_equal(_element_type.get()))
94 throw type_violation{};94 throw type_violation{};
95 95
96 new_tail->add_ref();96 new_tail->add_ref();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t