dog

Only here to post about CD-ROMs

I want!!
⬅️ this mark
🍷white
and Taste 🦆11
require

 

 

(Avatar by @texture, CD-ROM Journal button by @candiedreptile)


CD-ROM Journal
cdrom.ca/

After a lifetime writing Ruby, it's frankly kind of surreal seeing something from 1995 using respondsTo methods to decide how to pass messages at runtime. Feels far more modern than I associate with the time.

on mGetFirstFrame me, aTrack
  put the pXObj of me into myXObj
  if myXObj(mRespondsTo, "mGetFirstFrame") = 0 then
    return 0
  else
    return  myXObj(mGetFirstFrame, aTrack)
  end if
end
--
--
--
on mGetLastFrame me, aTrack
  put the pXObj of me into myXObj
  if myXObj(mRespondsTo, "mGetLastFrame") = 0 then
    return 0
  else
    return  myXObj(mGetLastFrame, aTrack)
  end if
end

You must log in to comment.

in reply to @dog's post:

I’m not a Ruby expert and I’ve never used Lingo, but I remember Smalltalk-like features like this being hyped for Objective C in the late 90s, so 1995 seems plausible to me. Kind of amazing how much influence Smalltalk has had over the decades, really.

Yeah, I get the impression Lingo got it from Smalltalk. Which means this would actually be exactly the right time for it - I guess I'm just used to thinking of this as a much newer language feature!