Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using constants in invalid nonvisuals

1 view
Skip to first unread message

Benjamin Kemner

unread,
Jul 31, 2008, 10:42:26 AM7/31/08
to
Hi,

I detect that it is possible to use constants of invalid objects.

example:

n_customer inv_cst
INTEGER li_tax

li_tax = inv_cost.cii_tax

inv_cost = CREATE n_customer
inv_cost.of_helloWorld ( )

...


OR
...

li_tax = n_customer.cii_tax

...


Is THIS a feature or a bug?

--
kemnerAT_NOSPAMsf-datentechnikDOTde

Bruce Armstrong [TeamSybase]

unread,
Jul 31, 2008, 10:52:45 AM7/31/08
to
It's a feature. It's hinted at in the documentation:

"Constants are also efficient. Because the value is established during
compilation, the compiled code uses the value itself, rather than referring
to a variable that holds the value."

That's why you don't have to create an instance of the object to access
them.

"Benjamin Kemner" <lo...@my-signature.de> wrote in message
news:4891cf52$1@forums-1-dub...

Benjamin Kemner

unread,
Jul 31, 2008, 11:27:21 AM7/31/08
to
ok, cool

thx ;)


Bruce Armstrong [TeamSybase] schrieb:


--
kemnerAT_NOSPAMsf-datentechnikDOTde

Arnd Schmidt

unread,
Jul 31, 2008, 5:02:43 PM7/31/08
to
And even more you can also use:

li_tax = n_customer.cii_tax


Arnd

Arnd Schmidt

unread,
Jul 31, 2008, 5:04:28 PM7/31/08
to
Oh...you wrote this before... Just ignore it :-)
0 new messages