That was just a stylistic convention to provide scoping.

Ken

On Mon, Aug 17, 2015 at 11:53 AM, EBo <e...@sandien.com> wrote:

> I did not know that LCNC/g-code supported scoping (implied by the
> gene:something), or was this just a stylistic nicety?
>
>    EBo --
>
> On Aug 17 2015 9:09 AM, Kenneth Lerman wrote:
> > I would just have my subroutines all call a separate subroutine that
> > initializes global named parameter.
> > So:
> > o<gene:Init> sub
> >   #<_gene:height> = 62
> >   #<_gene:chestSize> = 38
> > o<gene:Init> endsub
> >
> > And:
> > o<gene:millFront> sub
> >   o<gene:Init> call
> >   (do all sorts of stuff using global parameters that have been
> > setup)
> > o<gene:millFront> endsub
> >
> > o<gene:millBack> sub
> >    o<gene:Init> call
> >    (do stuff for the back)
> > o<gene:millBack> sub
> >
> > Regards,
> >
> > Ken
> >
> > [No nasty comments about a height of five-two and a chest size of
> > 38.]
> > KL
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>



-- 
Kenneth Lerman
55 Main Street
Newtown, CT 06470
------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to