Hello,

I've created this class:

setClass("example",
   representation  (
          size = "numeric",
          id    = "character"
   )
)

Suppose I create a new instance of this class:

> x <- new("example", 4, "id_value")

This creates an S4 object with two slots.  Am I correct in thinking that
slots are "filled" by SEXPs?

Thanks, Patrick

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to