Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#278 An empty ENUM, TYPE or UNION

open
nobody
None
2013-08-30
2013-07-29
chapilinsky
No

Hallo,

An empty ENUM, TYPE or UNION would be nice!! :)

Gruß
chapilinsky

Discussion

  • TJF
    TJF
    2013-08-28

    Why do you think you need that?

    Do you know about the TYPE (alias) statement?

     
  • chapilinsky
    chapilinsky
    2013-08-29

    a void type instruction is already useful.

    if I no variable in my construct I would also not need to declare! And type alias is hardly an alternative!

    Even in times of 8 GB and more necessary to not waste memory.

     
  • TJF
    TJF
    2013-08-29

    Sorry, I don't understand. (Where's the answer to my why question?)

    Trying again: What's the difference between your 'empty ENUM, TYPE or UNION' and

    TYPE AS ANY empty_ENUM_TYPE_or_UNION

    ???

     
  • chapilinsky
    chapilinsky
    2013-08-29

    was gibt es nicht zu versehen?

    type Foo
    declare sub bar()
    end type

    und gut ist! Da muss keine Variable sein kenne.
    Ist in GNU gcc auch möglich!

     
  • TJF
    TJF
    2013-08-29

    So you're speaking about an interface?

    TYPE Foo
    bar AS SUB()
    END TYPE ' (und gut ist!)

    OK, and how is this related to ENUM and UNION?

     
  • chapilinsky
    chapilinsky
    2013-08-30

    nothing!