Ok I got it, temporary blindness. I was simply (if that could be called
simply) forgetting that we where declaring a new package for the Java
class.
Is there a way to declare package less functions in Java? (yes my Java is
rusty)
PBS (the build system is not object oriented (for a very good r
nadim wrote:
Can you tell me why the Inlined code can't be evaluated in the
PBS::Runs:: package? Where is it evaluated right now?
It can and is. It's evaluated in the current (the package that calls
"use Inline ...") package.
In your case I believe this is PBS::Runs::PBS_1.
The problem yo
On Monday 31 May 2004 20:08, Patrick LeBoutillier wrote:
> nadim wrote:
> > <>
> > my $alu = (__PACKAGE__ . "::Pod_alu")->new ;
>
> Couldn't you just sandwich the contents of ./Pbsfile.pl between
> package main ;
> ...
> package PBS::Runs::PBS_1
No because the contents have to be in a PBS::Runs::[
nadim wrote:
<>
my $alu = (__PACKAGE__ . "::Pod_alu")->new ;
Couldn't you just sandwich the contents of ./Pbsfile.pl between
package main ;
...
package PBS::Runs::PBS_1
?
In any event, what we would need is a PACKAGE option to force the
code to be evaluated in a specific package:
use Inline Java =>
hi,
On Monday 31 May 2004 16:50, Patrick LeBoutillier wrote:
> nadim,
> This is most certainly a package problem. Inline::Java will bind you
> code in the current
> package. Maybe un your case the package in not "main" when you require
> the .pl file.
I'm in package PBS::PBS and I evaluate this c
nadim,
This is most certainly a package problem. Inline::Java will bind you
code in the current
package. Maybe un your case the package in not "main" when you require
the .pl file.
Try this test:
my $alu = new PBS::Runs::PBS_1::Pod_alu() ;
or try putting
package main ;
a the beginning of th
Hi, This is more of a question to Patrick but I think it might be of
interrest to the rest of the group.
I took the example find in the documentation of I::J and put it in a perl
script named 'Pbsfile.pl'. If I run it this way:
[EMAIL PROTECTED] lang]$ perl Pbsfile.pl
25
-7
which is fine.
Now