[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Extracting 'applobs' from smobs?
From: |
Dirk Herrmann |
Subject: |
Extracting 'applobs' from smobs? |
Date: |
Thu, 7 Dec 2000 17:50:10 +0100 (MET) |
Hello everybody.
Just a thought: Would it make sense to separate 'traditional' smobs and
applicable smobs, i. e. providing a scm_tc7_applob type? What makes me
suspicious is the need to check for SCM_SMOB_APPLICABLE_P whenever the
evaluator encounters a smob. Such if-then-elses in combination with types
always give the impression to me that two different concepts have been
merged together.
If there was a separate applob type (or whatever we would call it), there
would be a slightly different interface, since the 'apply' function would
be an essential part of the applob:
scm_bits_t scm_make_applob_type (
char* name, scm_sizet size,
SCM (*apply) (), unsigned int req, unsigned int opt, unsigned int rst);
Then, there was no need for such checks within the evaluator.
Best regards,
Dirk Herrmann
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Extracting 'applobs' from smobs?,
Dirk Herrmann <=