type declarations in VW

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

type declarations in VW

Rob Vens-2
there used to be this totally ignored possibility to add type declarations in VisualWorks, like:
| name <String> |
But it seems I cannot find where this is, if it still possible (used to be, I am sure of that). It was some kind of compiler switch that allowed for these declarations although they were never used. And I am not talking about the class comments that use the same syntax for typing.
Anyone remembers? Please tell me where to find it, if it still exists. I can imagine it was killed to make the pragma stuff possible though.
Reply | Threaded
Open this post in threaded view
|

RE: type declarations in VW

Mark Plas

If I remember correctly, if you modify this method (the line in bold) you have the type declarations activated:

 

Parser>>initScanner

            super initScanner.

            typeTable := TypeTable.

            "Default language choice:"

            oldLanguage := true.

            newLanguage := true.

            extendedLanguage := true

 


From: Rob Vens [mailto:[hidden email]]
Sent: dinsdag 15 januari 2008 13:10
To: VWNC
Subject: type declarations in VW

 

there used to be this totally ignored possibility to add type declarations in VisualWorks, like:
| name <String> |
But it seems I cannot find where this is, if it still possible (used to be, I am sure of that). It was some kind of compiler switch that allowed for these declarations although they were never used. And I am not talking about the class comments that use the same syntax for typing.
Anyone remembers? Please tell me where to find it, if it still exists. I can imagine it was killed to make the pragma stuff possible though.

Reply | Threaded
Open this post in threaded view
|

Re: type declarations in VW

Rob Vens-2
that's the one! thanks

2008/1/15, Mark Plas <[hidden email]>:

If I remember correctly, if you modify this method (the line in bold) you have the type declarations activated:

 

Parser>>initScanner

            super initScanner.

            typeTable := TypeTable.

            "Default language choice:"

            oldLanguage := true.

            newLanguage := true.

            extendedLanguage := true

 


From: Rob Vens [mailto: [hidden email]]
Sent: dinsdag 15 januari 2008 13:10
To: VWNC
Subject: type declarations in VW

 

there used to be this totally ignored possibility to add type declarations in VisualWorks, like:
| name <String> |
But it seems I cannot find where this is, if it still possible (used to be, I am sure of that). It was some kind of compiler switch that allowed for these declarations although they were never used. And I am not talking about the class comments that use the same syntax for typing.
Anyone remembers? Please tell me where to find it, if it still exists. I can imagine it was killed to make the pragma stuff possible though.