Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goto and tie don't mix #188

Closed
p5pRT opened this issue Jul 14, 1999 · 1 comment
Closed

goto and tie don't mix #188

p5pRT opened this issue Jul 14, 1999 · 1 comment

Comments

@p5pRT
Copy link
Collaborator

@p5pRT p5pRT commented Jul 14, 1999

Migrated from rt.perl.org#994 (status was 'resolved')

Searchable as RT994$

@p5pRT
Copy link
Collaborator Author

@p5pRT p5pRT commented Jul 14, 1999

From tgy@chocobo.org

I cannot goto() inside TIESCALAR, STORE, FETCH.

#!/usr/bin/perl -w

tie $foo, 'GOTO', 7;

$bar = $foo;
$foo = $bar;

print $foo;

package GOTO;

sub TIESCALAR {
  warn 'TIESCALAR';
  my ($class, $num) = @​_;
  goto FOO;
  FOO​:
  bless \$num, $class;
}

sub STORE {
  warn 'STORE';
  my ($self, $data) = @​_;
  goto FOO;
  FOO​:
  $$self = $data;
}

sub FETCH {
  warn 'FETCH';
  my $self = shift;
  goto FOO;
  FOO​:
  $$self;
}

__END__

Perl Info


Site configuration information for perl 5.00502:

Summary of my perl5 (5.0 patchlevel 5 subversion 02) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-object
    uname=''
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cl.exe', optimize='-O2 -MD -DNDEBUG -TP -GX', gccversion=
    cppflags='-DWIN32'
    ccflags ='-O2 -MD -DNDEBUG -TP -GX -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -DPERL_OBJECT'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -release -machine:x86'
    libpth="C:\Perl\lib\core" 
    libs= oldnames.lib kernel32.lib user32.lib gdi32.lib  winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib  oleaut32.lib netapi32.lib
uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib
odbccp32.lib PerlCRT.lib
    libc=C:\Perl\lib\core\PerlCRT.lib, so=dll, useshrplib=yes,
libperl=perlcore.lib
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-machine:x86'

Locally applied patches:
    


@INC for perl 5.00502:
    c:\tim\moogle\lib
    C:\PERL\lib
    C:\PERL\site\lib
    .


Environment for perl 5.00502:
    HOME (unset)
    LANG (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)

PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\PROGRA~1\MISCUTIL;C:\PERL\BIN;C:\JAVA\BIN;C:\MSSQL\BINN;C:\PROGRA~1\NETWOR~1\MCAFEE~1
    PERL5LIB=c:\tim\moogle\lib
    PERL5OPT=-MWild
    PERL_BADLANG (unset)
    SHELL (unset)


-- 
Neko | tgy@chocobo.org | I want a moogle stuffy!


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.