Book a Demo

Author Topic: Adding local instances of EA Classes  (Read 4445 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Adding local instances of EA Classes
« on: September 07, 2005, 02:21:16 am »
Can anyone confirm what I'm seeing?

In my Emitter Add-On, I can't create local instances of any EA Classes (such as new EA.PackageClass();).

I get EA.PackageClass() is inaccessible due to its protection level.

I can only create instances within the context of the EA collections via AddNew.

TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Adding local instances of EA Classes
« Reply #1 on: September 07, 2005, 04:35:43 pm »
Without thinking/trying.

Create local as untyped object and cast it.  ?????

bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.