$98 GRAYBYTE WORDPRESS FILE MANAGER $84

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.217.100
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/f2py/tests/src/crackfortran/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/f2py/tests/src/crackfortran//operators.f90
module foo
  type bar
     character(len = 32) :: item
  end type bar
  interface operator(.item.)
     module procedure item_int, item_real
  end interface operator(.item.)
  interface operator(==)
     module procedure items_are_equal
  end interface operator(==)
  interface assignment(=)
     module procedure get_int, get_real
  end interface assignment(=)
contains
  function item_int(val) result(elem)
    integer, intent(in) :: val
    type(bar) :: elem

    write(elem%item, "(I32)") val
  end function item_int

  function item_real(val) result(elem)
    real, intent(in) :: val
    type(bar) :: elem

    write(elem%item, "(1PE32.12)") val
  end function item_real

  function items_are_equal(val1, val2) result(equal)
    type(bar), intent(in) :: val1, val2
    logical :: equal

    equal = (val1%item == val2%item)
  end function items_are_equal

  subroutine get_real(rval, item)
    real, intent(out) :: rval
    type(bar), intent(in) :: item

    read(item%item, *) rval
  end subroutine get_real

  subroutine get_int(rval, item)
    integer, intent(out) :: rval
    type(bar), intent(in) :: item

    read(item%item, *) rval
  end subroutine get_int
end module foo


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
20 Jan 2026 1.01 PM
root / root
0755
accesstype.f90
0.203 KB
20 Jan 2026 1.01 PM
root / root
0644
foo_deps.f90
0.125 KB
20 Jan 2026 1.01 PM
root / root
0644
gh15035.f
0.366 KB
20 Jan 2026 1.01 PM
root / root
0644
gh17859.f
0.332 KB
20 Jan 2026 1.01 PM
root / root
0644
gh23533.f
0.123 KB
20 Jan 2026 1.01 PM
root / root
0644
gh23598.f90
0.099 KB
20 Jan 2026 1.01 PM
root / root
0644
gh23598Warn.f90
0.2 KB
20 Jan 2026 1.01 PM
root / root
0644
gh23879.f90
0.324 KB
20 Jan 2026 1.01 PM
root / root
0644
gh2848.f90
0.275 KB
20 Jan 2026 1.01 PM
root / root
0644
operators.f90
1.156 KB
20 Jan 2026 1.01 PM
root / root
0644
privatemod.f90
0.17 KB
20 Jan 2026 1.01 PM
root / root
0644
publicmod.f90
0.163 KB
20 Jan 2026 1.01 PM
root / root
0644
pubprivmod.f90
0.161 KB
20 Jan 2026 1.01 PM
root / root
0644
unicode_comment.f90
0.096 KB
20 Jan 2026 1.01 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF