Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suspicious pointer assignment
#1
Code:
TYPE two3tree
  root as two3node ptr
  size as integer
  depth as integer
  AddNode as Sub(value as integer)
END TYPE

SUB AddNode(value as integer)
  If this.root = 0 then
    this.root = NewTwo3Node(value)
  else
    dim p as Two3Node ptr
    p = this.root
  end if
  this.size = this.size + 1
END SUB

NewTwo3Node returns a Two3Node ptr but that like gives me an Implicit conversion warning and p = this.root gives me the suspicious pointer assignement warning. What's going on?
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Reply


Messages In This Thread
Suspicious pointer assignment - by wallace - 03-24-2006, 06:47 AM
Suspicious pointer assignment - by stylin - 03-24-2006, 07:05 AM
Suspicious pointer assignment - by DrV - 03-24-2006, 07:10 AM
Suspicious pointer assignment - by wallace - 03-24-2006, 07:29 AM
Suspicious pointer assignment - by Anonymous - 03-24-2006, 07:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)