Re: Executing with classes dependies [message #44111] |
Fri, 20 May 2005 07:35 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Antonio Santiago writes:
> Mr. D says (from his article):
>
> "...it compiles the procedures and functions in this file in the order
> in which they are defined in the file (top to bottom), until it finds a
> procedure or function having the same name as the file. If it finds such
> a program module, it compiles the module and immediately stops compiling
> the file and runs the module."
>
> Mr. A says (from its own experience):
> Oh my god, I'm a fuker IDL-nebie. Two many time programming on others
> (more real) object oriented programming languages and putting the class
> definition on the top of file :(
>
> Thanks. I'm going to change the order on all my classes right now :(
And then get rid of that file that does all that compiling
for you. Heavens! :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Executing with classes dependies [message #44113 is a reply to message #44111] |
Fri, 20 May 2005 07:19  |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
Mr. D says (from his article):
"...it compiles the procedures and functions in this file in the order
in which they are defined in the file (top to bottom), until it finds a
procedure or function having the same name as the file. If it finds such
a program module, it compiles the module and immediately stops compiling
the file and runs the module."
Mr. A says (from its own experience):
Oh my god, I'm a fuker IDL-nebie. Two many time programming on others
(more real) object oriented programming languages and putting the class
definition on the top of file :(
Thanks. I'm going to change the order on all my classes right now :(
--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
|
|
|
|
Re: Executing with classes dependies [message #44118 is a reply to message #44117] |
Fri, 20 May 2005 06:45  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Antonio Santiago writes:
> I think (i'm not sure :) ) not.
> My files are not function or procedures, they are clases and I can't
> write all classes in one file because. Also I cant pack all classes in
> one file (like idldoc.sav utility).
>
> I just put on my webpage the code for IDLCanvas. It has a directory with
> some samples. If you have some time test it, please ;)
Well, the first file I opened has CANVAS__DEFINE as the
*first* module in the file!!! Better read that article
again. :-)
Cheers,
David
P.S. I've give you a hint. The location of this module in
the file is exactly *opposite* of where it should be. :-)
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Executing with classes dependies [message #44119 is a reply to message #44118] |
Fri, 20 May 2005 06:38  |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
>
> Yes, this is the Standard Method for people who
> don't name their programs correctly. :-)
>
> http://www.dfanning.com/tips/namefiles.html
>
Hi David,
I think (i'm not sure :) ) not.
My files are not function or procedures, they are clases and I can't
write all classes in one file because. Also I cant pack all classes in
one file (like idldoc.sav utility).
I just put on my webpage the code for IDLCanvas. It has a directory with
some samples. If you have some time test it, please ;)
oohhh!!! I'm going to announce it on idl news group.
--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
|
|
|
|
Re: Executing with classes dependies [message #44123 is a reply to message #44121] |
Fri, 20 May 2005 03:25  |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
A work friend just told one possible solution. Simply creates a
"idlcanvas.g" file with the .compile of all needed classes. Then when
user wants to execute a program use IDLCanvas only needs to execute;
@idlcanvas.g
exec_file
|
|
|
Re: Executing with classes dependies [message #44124 is a reply to message #44123] |
Fri, 20 May 2005 02:08  |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
Antonio Santiago wrote:
> Hello boys,
>
> I think my first release of IDLCanvas is almost finished. Now I'm
> writting some code examples.
>
> I try to put in the !PATH variable the path to the IDLCanvas classes
> (thinking it will compile automatically) but this doesnt work. When I
> execute the example it fails (the error is not significant, only says
> that the number of initicalization parameters for one class is not
> right). On the other side, if I execute the same example compiling
> before all needed classes all is right.
>
> Any idea from you?
> Thanks.
>
I forget to say that I try to use the RESOLVE_ALL, CLASS='blablabla' but
doesn't work.
--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
|
|
|