Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Subroutine


Related Topics

  
  Subroutine - Wikipedia, the free encyclopedia
In computer science, a subroutine (function, method, procedure, or subprogram) is a portion of code within a larger program, which performs a specific task and is relatively independent of the remaining code.
Subroutines are often given parameters to refine their behavior or to perform a certain computation with given [variable] values.
Subroutine is practically synonymous with "subprogram." The former term may derive from the terminology of assembly languages and Fortran.
en.wikipedia.org /wiki/Subroutine   (1993 words)

  
 Perl Subroutine Primer (1/2)
When you define and use subroutines, the code logic is neatly contained in a single location of the script and can be called (and later modified, when necessary) without requiring you to track down every instance of the logic in the script at large.
Subroutines in Perl are easy to define and use; but like practically any other aspect of any programming language, there are some rules that you need to know --and follow-- to make the most of them (and avoid shooting yourself in the foot).
While some subroutines may be helpful as static code blocks (that simply repeat the exact same action as needed without any variation) most subroutines become more useful by passing parameters--sending variable values to the subroutine that it should act on, and possibly receiving unique values back from the subroutine in response.
www.webreference.com /programming/perl/subroutines   (2349 words)

  
 Subroutine Steps Pane   (Site not responding. Last check: 2007-11-06)
Subroutines can be very useful for modularizing the code in your project.
Project subroutines will always be searched first for a matching subroutine name, and if not found, the global subroutine steps will be searched (this allows global subroutines to be overridden by a project subroutine of the same name).
When a subroutine returns, all the temporary macros defined for calling that subroutine will be deleted, so be sure to use unique parameter names across subroutines when one subroutine calls another subroutine.
www.kinook.com /VisBuildPro/Manual/subroutinestepstab.htm   (288 words)

  
 [Chapter 4] Subroutine References and Closures   (Site not responding. Last check: 2007-11-06)
As with ordinary variables, subroutines can be named or anonymous, and Perl has a syntax for taking a reference to either type.
A closure is a subroutine that, when created, packages its containing subroutine's environment (all the variables it requires and that are not local to itself).
subroutine here, in the same way that we don't evaluate the value of a scalar when we take a reference to it.
www.unix.org.ua /orelly/perl/advprog/ch04_01.htm   (576 words)

  
 Technical Reference: Communications, Volume 2 - t_snd Subroutine for Transport Layer Interface
The t_snd subroutine is used to send either normal or expedited data.
By default, the t_snd subroutine operates in synchronous mode and may wait if flow-control restrictions prevent the data from being accepted by the local transport provider at the time the call is made.
In this case, the t_snd subroutine sets the T_MORE flag for the data that was sent and returns a value less than the value of the nbytes parameter.
www.ncsa.uiuc.edu /UserInfo/Resources/Hardware/IBMp690/IBM/usr/share/man/info/en_US/a_doc_lib/libs/commtrf2/t_snd_Transport.htm   (759 words)

  
 Subroutine Call   (Site not responding. Last check: 2007-11-06)
A temporary macro will be created for each parameter when the subroutine is called and can be used anywhere within the subroutine.
Subroutine steps can reference any macro name, not just those defined in this list, but this provides a convenient way to quickly define macros to pass to the subroutine steps.
When a subroutine returns, all the temporary macros defined for calling that subroutine will be popped (deleted if there was previously no macro with the name or updated to its original value if it did exist previously).
www.kinook.com /VisBuildPro/Manual/subroutinecallaction.htm   (244 words)

  
 Chapter 16 -- Subroutine Definition   (Site not responding. Last check: 2007-11-06)
A subroutine is similar to a function in C and to a procedure or a function in Pascal.
The principle is that the subroutine declares that one or more of its parameters are typeglobbed, which means that all the references to that identifier in the scope of the subroutine are taken to refer to the equivalent identifier in the namespace of the calling program.
Special subroutines act as constructors and destructors, creating objects that are members of the class and deleting the objects when the last reference to the object is gone.
docs.rinet.ru /Using_Perl5_in_Web/ch16.htm   (3115 words)

  
 PGPLOT Subroutine Descriptions
SUBROUTINE PGBBUF Begin saving graphical output commands in an internal buffer; the commands are held until a matching PGEBUF call (or until the buffer is emptied by PGUPDT).
SUBROUTINE PGRECT (X1, X2, Y1, Y2) REAL X1, X2, Y1, Y2 This routine can be used instead of PGPOLY for the special case of drawing a rectangle aligned with the coordinate axes; only two vertices need be specified instead of four.
SUBROUTINE PGSCLP(STATE) INTEGER STATE Normally all PGPLOT primitives except text are ``clipped'' at the edge of the viewport: parts of the primitives that lie outside the viewport are not drawn.
www.physics.rutgers.edu /computers/unix/pgplot_routines.html   (18252 words)

  
 SUBROUTINE Command   (Site not responding. Last check: 2007-11-06)
Subroutines are called from the main code with a command of the format "CALL name".
Subroutines share the same variable definitions as the main code but have their own labels.
This has the effect of disabling branching into and out of subroutines, and also means that each subroutine may use a further 255 labels in addition to those used in the main code.
www.opensta.org /docs/sclref10/imp3ln69.htm   (210 words)

  
 Subroutine (Javaflow 1.0-SNAPSHOT API)   (Site not responding. Last check: 2007-11-06)
Returns an int[] containing the indices of the local variable slots accessed by this Subroutine (read-accessed, write-accessed or both); local variables referenced by subroutines of this subroutine are not included.
Returns the subroutines that are directly called from this subroutine.
Note that an instruction is part of exactly one subroutine (the top-level code is considered to be a special subroutine) - else it is not reachable at all (dead code).
jakarta.apache.org /commons/sandbox/javaflow/apidocs/org/apache/commons/javaflow/bytecode/transformation/bcel/analyser/Subroutine.html   (338 words)

  
 zbuffer Subroutine
Drawing to the z-buffer with the zdraw subroutine must be disabled in order for the z-buffer to be enabled.
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
Specifying which bits of the z-buffer are written during normal z-buffer operation with the zwritemask subroutine.
www.nersc.gov /vendor_docs/ibm/libs/gl32tref/zbuffer.htm   (273 words)

  
 Structure of subroutine subprograms
Subroutines are similar to functions, yet differ from them in several ways.
The most important one is that there is no value associated with the name of the subroutine or, in other words, subroutine has no return statement.
The best way to contrast the difference between a function and a subroutine is to rewrite the function for the calculation of the average of three numbers as a subroutine.
www.lrsm.upenn.edu /~vitek/courses/f77intro/node27.html   (388 words)

  
 Subroutine References (may 96)
Within the andnon_blank subroutine, the first parameter is then a reference to a subroutine that will ``fetch the next value''.
Here, the subroutine referenced by $scanner is invoked repeatedly until its return value (stuffed into $return) has a non-blank value in it.
In this case, the sort subroutine andsort_hash_by_value thinks it is accessing %hash, when in fact because of the alias, it is accessing %there.
www.stonehenge.com /merlyn/UnixReview/col08.html   (1738 words)

  
 Multiple Dispatch and Subroutine Overloading in Perl
That means the subroutine that's invoked is the one defined in the class that the invoking object belongs to.
subroutine somewhere in the invoking object's inheritance hierarchy.
The important point is that, whichever subroutine the method dispatcher eventually selects, it was all determined by the class of the original invoking object (i.e.
www.csse.monash.edu.au /~damian/TPC/1999/MultipleDispatch/Paper.html   (2713 words)

  
 Subroutine Attributes (Programming Perl)   (Site not responding. Last check: 2007-11-06)
A subroutine declaration or definition may have a list of attributes associated with it.
When set on a nonmethod subroutine, Perl ensures that a lock is acquired on the subroutine itself before that subroutine is entered.
The scalar or list context of both the lvalue subroutine and the righthand side of an assignment to that subroutine is determined as if the subroutine call were replaced by a scalar.
www.cs.ait.ac.th /~on/O/oreilly/perl/prog3/ch06_05.htm   (655 words)

  
 Java Programming: Section 4.3
When a subroutine is called, the actual parameters in the subroutine call statement are evaluated and the values are assigned to the formal parameters in the subroutine's definition.
Java is somewhat unusual in that it allows two different subroutines in the same class to have the same name, provided that their signatures are different.
Changes made inside a subroutine to a formal parameter have no effect on the rest of the program (at least if the type of the parameter is one of the primitive types -- things are more complicated in the case of objects, as we'll see later).
math.hws.edu /javanotes/c4/s3.html   (2368 words)

  
 Subroutine references (Feb 00)
If the subroutine is a filter, it will need to know how to get the next item, and then how to hand back the result.
The subroutines created for this kind of pluggable behavior are likely to be used in only one place.
Perl binds the subroutine to its defining environment via the ``closure'' mechanism, which is a fancy way to say that all lexical variables visible to the definition are also available at the invocation.
www.stonehenge.com /merlyn/LinuxMag/col09.html   (1803 words)

  
 Passing arguments to a Perl subroutine
In the revised subroutine definition above, we use the shift() function to extract the first element of the array—the flavor—and assign it to a variable.
The amount of USD to be converted is passed to the subroutine as an argument, and the output contains the corresponding amount in euros.
Even though the subroutine does not print any output, it does return a value, which can be caught and used by the main script.
builder.com.com /5100-6374-5259393-2.html   (390 words)

  
 Subroutine Functions   (Site not responding. Last check: 2007-11-06)
Subroutine Functions ==================== caller(EXPR) caller Returns the context of the current subroutine call: ($package,$filename,$line) = caller; With EXPR, returns some extra information that the debugger uses to print a stack trace.
(See Subroutines.) SUBROUTINE may be a scalar variable, in which case the variable contains the name of the subroutine to execute.
The `and' form is also used to specify subroutines to the `defined' and `undef' operators.
www.cis.ksu.edu /VirtualHelp/Info/develop/perl.info.Subroutine_Functions.html   (379 words)

  
 Technical Reference: Base Operating System and Extensions , Volume 2 - system Subroutine
The system subroutine calls the fork subroutine to create a child process that in turn uses the exec l subroutine to run the /usr/bin/sh command, which interprets the shell command contained in the String parameter.
The exit status of the shell is returned in the same manner as a call to the wait or waitpid subroutine, using the structures in the sys/wait.h file.
The system subroutine does not affect the termination status of any child of the calling process unless that process was created by the system subroutine.
publibn.boulder.ibm.com /doc_link/Ja_JP/a_doc_lib/libs/basetrf2/system.htm   (501 words)

  
 [No title]   (Site not responding. Last check: 2007-11-06)
Subroutine Call The Subroutine Call symbol is used to represent execution of a predefined process or group of processes.
The name of the subroutine and values to be passed to the subroutine should be enclosed within the subroutine call symbol.
After selecting the subroutine call option, a dialogue box for entering the contents of the subroutine call symbol will be displayed:  After entering the statement associated with the subroutine call statement in the dialog box, left click on OK or press the Enter key.
zippy.sonoma.edu /~tiawatts/SFC/SFC-v2.doc   (3996 words)

  
 Information about Harvest Subroutine calls
Subroutine Purpose: This routine writes out the loop_ structure: data_item variable _atom_type.symbol AtName _atom_type.scat_Cromer_Mann_a1 a1 _atom_type.scat_Cromer_Mann_a2 a2 _atom_type.scat_Cromer_Mann_a3 a3 _atom_type.scat_Cromer_Mann_a4 a4 _atom_type.scat_Cromer_Mann_b1 b1 _atom_type.scat_Cromer_Mann_b2 b2 _atom_type.scat_Cromer_Mann_b3 b3 _atom_type.scat_Cromer_Mann_b4 b4 _atom_type.scat_Cromer_Mann_c c This routine can be called as many times as required for each atom(element) type that is used in a refinement.
CHARACTER Rcriteria(Nlines)*80 The Criteria used in averaging equivalent Intensities during the data reduction stage to generate the set of reduced unique data, the description of the rejection criteria for outliers that was used may included the criteria for either the scaling and for the merging of a set of observations.
NOTE: as with most subroutines one can call this routine several times within a program if the requested data items are calculated at different stages of a particular program, by setting unkown or data items not required to ValueNotDet, however one can only send to libccif via libharvest a particular data item ONCE.
msdlocal.ebi.ac.uk /docs/Harvest/harvestlib.htm   (2930 words)

  
 perlsub - Perl subroutines
The scalar/list context for the subroutine and for the right-hand side of assignment is determined as if the subroutine call is replaced by a scalar.
The value will be available to the subroutine either as a simple scalar, or (in the latter two cases) as a reference to the typeglob.
subroutine is called with the arguments that would have been passed to the original subroutine.
theoryx5.uwinnipeg.ca /CPAN/perl/pod/perlsub.html   (6618 words)

  
 Subroutine
When the subroutine is finished, at the end it branches to that location.
Lines 58 to 69 of this program are taken directly from lines 26 to 35 of that example, where we copied an array using a counter.
The subroutine blah simply has to retrieve the pointer to the source array and the pointer to the target array off the stack (lines 55 and 56).
www.wiu.edu /users/mflll/310/done/ch03s10.html   (1521 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.