-
Hello All, Quick intro: I've been using Node.JS a few years but only recently got this book. It's a great book. It has exactly the content that I was looking for in terms of explaining the history and evolution of Node and also the readacross from GoF, etc. I have a question with regard to the ImmutableBuffer class on page 251. I can see that the constructor creates a i.e. it's not stored as an attribute (e.g. Thanks for your help Andrew |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Sorry - just looking at it again and can answer my own question 😁 !! Because |
Beta Was this translation helpful? Give feedback.
Sorry - just looking at it again and can answer my own question 😁 !! Because
buffer[prop].bind(buffer)
is assigned as a property to theImmutableBuffer
, that property is both the data object (buffer
) and it's method (readInt8
), sobuffer
is implicitly available when calling thereadInt8
method onimmutable
.