cl-structures::Interned: Change to_ref() from assoc. function to member function

(it's so much nicer)
This commit is contained in:
2025-03-12 01:16:51 -05:00
parent dcdb100a8a
commit 584207fc8c
6 changed files with 10 additions and 10 deletions

View File

@@ -59,7 +59,7 @@ impl Callable for Function {
return Err(Error::ArgNumber { want: bind.len(), got: args.len() });
}
if self.is_constructor {
return Ok(ConValue::TupleStruct(Box::new((Sym::to_ref(name), args.into()))));
return Ok(ConValue::TupleStruct(Box::new((name.to_ref(), args.into()))));
}
let Some(body) = body else {
return Err(Error::NotDefined(*name));