Skip to content

Commit

Permalink
Added comment about clear bitset! result
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jun 8, 2020
1 parent e5442eb commit d234395
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/t-bitset.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,11 @@
return (VAL_TAIL(value) == 0) ? R_TRUE : R_FALSE;

case A_CLEAR:
//O: which version is better?
// version 1: clearing series and resetting length as well -> clear make bitset! {01} == make bitset! #{}
Clear_Series(VAL_SERIES(value));
// version 2: clearing series but keeping its length -> ... == make bitset! #{00}
// CLEAR(SERIES_DATA(VAL_SERIES(value)), SERIES_SPACE(VAL_SERIES(value)));
break;

case A_AND:
Expand Down

0 comments on commit d234395

Please sign in to comment.