🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2415

Actor Stack Overflow

#2415
From: Ka Chin Wong
Date: Fri, 03 May 1991 15:54
27 lines
1074 bytes

Hi, Actor fans,

  I come upon a problem which causes Actor to have its stack overflowed
and terminated by UAE.  Could someone help me explain why?

  Joe := new(Array, 1)
  Joe[0] := Joe
  Sam := new(Dictionary, 10)
  add(Sam, Joe, "Crash!!!")

I ran this code on the workspace and Actor crashed.
Of course, it is unlikely that someone would need a
variable like Joe which references itself.  I did
it mainly to test my code when an object has an
implicit reference to itself: Joe -> Sue -> Sam -> Joe.

If these codes do not cause a crash on any other
systems, I would be interested to know as well.

I appreciate your comment!


Thanks

Rick
Technical Details
Message-ID: <282187b8.306d@petunia.CalPoly.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!petunia!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!petunia!news
From: kwong@polyslo.CalPoly.EDU (Ka Chin Wong)
Newsgroups: comp.windows.ms.programmer
Subject: Actor Stack Overflow
Message-ID: <282187b8.306d@petunia.CalPoly.EDU>
Date: 3 May 91 15:54:32 GMT
Reply-To: kwong@polyslo.CalPoly.EDU (Ka Chin Wong)
Organization: Cal Poly State Univ,CSC Dept,San Luis Obispo,CA 93407
Lines: 27