[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    [Quanta] Autocompletion
From:       Uros Dukanac <duki () lucidtech ! org>
Date:       2006-05-17 11:37:31
Message-ID: 200605171337.31509.duki () lucidtech ! org
[Download RAW message or body]

Aslak Berby <aslak.berby@ecoonline.com>
asked this in Quanta Mailing list on 2005-06-10 10:15:34 :

-------------------
Quanta got a kind of class autocompletion.

if I do:
$a = new aClass;

then start typing:
$a->
it will show all functions in the class.

But the following construction does not work with autocompletion:
$a = &new aClass;
$a = new aClass();
$a = &new aClass();

Is there an option to set this?

Why the "&" and "()"?
The & is used to not create another instance of aClass after it is
created. (If you use $a=new aClass(); Then aClass will be created and
then a copy assigned to $a, while $a = & new aClass(); will assign $a to
the newly created class directly)
The () is for the constructor. You can also assign parameters to the
constructor this way and I also use it thru my projects for constructors
without parameters also.

Aslak
-------------------

Well, is there an answer? I have exactly the same problem...
I want to pass some arguments to constructor etc...
The example above is so straight and professional (nothing "dirty" from 
programmer's point of view) and I wonder why it can't work with & and ()...
It is common usage of classes.
Any clue or solution to that?
I'd like to have full auto completion too :). (not only for the 1st 
example :) )

Thank you in advance!

-- 
Dukanac Uros

=== Fortune =====
"You can't have everything.  Where would you put it?"
		-- Steven Wright
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic