all: remove byteptr and charptr; replace them with &byte and &char

This commit is contained in:
Alexander Medvednikov 2021-04-04 17:43:32 +03:00
parent 8dd4a63913
commit 57e6138a61
32 changed files with 250 additions and 226 deletions

View file

@ -553,9 +553,9 @@ fn test_bytes_to_string() {
}
fn test_charptr() {
foo := charptr('VLANG'.str)
foo := &char('VLANG'.str)
println(typeof(foo).name)
assert typeof(foo).name == 'charptr'
assert typeof(foo).name == '&char'
assert unsafe { foo.vstring() } == 'VLANG'
assert unsafe { foo.vstring_with_len(3) } == 'VLA'
}