Hi all - <br><br>say that I want to create a new primitive type (something like path or string) so it has the first class status (for the lack of a better term) as the other primitive types. How is this done, and Is this doable only in scheme or does it involve working on C code?
<br><br>Example - social security number.<br><br>> (define s1 #ssn"123-45-6789")<br>> s1<br>#ssn"123-45-6789"<br>> (ssn->string s1)<br>"123-45-6789" <br>> (ssn? s1)<br>#t<br>> (equal? s1 #ssn"123-45-6789")
<br>#t<br>> (equal? s1 #ssn"987-65-4321")<br>#f<br><br>Any pointer is appreciated ;) Thanks,<br>yinso <br><br>