DefType -> Define
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
DefType -> Define
Why is changed DefType keyword to Define one?
I find no sense to it.
Besides of that, the IDE don't recognize "EnableExplicit" word, neither "Beep_()", and probably other...
I find no sense to it.
Besides of that, the IDE don't recognize "EnableExplicit" word, neither "Beep_()", and probably other...
I don't understand it either but am sure Fred had a reason, in the meantime, if you don't want to change all your Deftype to Define then use a macro
Code: Select all
Macro Deftype
Define
EndMacro
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
The reason is very simple actually:
"DefType" is the only statement in PB that is "shortcuted" of two words.
It simply did not fit with the naming of the other Commands and Keywords.
Since v4 broke the compatibility anyway because of some of the new stuff,
we thought we'd clean up some of these old inconsistencies as well.
"DefType" is the only statement in PB that is "shortcuted" of two words.
It simply did not fit with the naming of the other Commands and Keywords.
Since v4 broke the compatibility anyway because of some of the new stuff,
we thought we'd clean up some of these old inconsistencies as well.
quidquid Latine dictum sit altum videtur
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Whilefreak wrote:The reason is very simple actually:
"DefType" is the only statement in PB that is "shortcuted" of two words.
It simply did not fit with the naming of the other Commands and Keywords.
Since v4 broke the compatibility anyway because of some of the new stuff,
we thought we'd clean up some of these old inconsistencies as well.
..
Wend
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Re: DefType -> Define
> the IDE don't recognize "EnableExplicit" word, neither "Beep_()"
Confirmed for EnableExplicit, but Beep_() shows up fine for me.
Confirmed for EnableExplicit, but Beep_() shows up fine for me.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
> If you don't like our naming choises, you can always use Macros now
Very true. Or just do a search/replace for DefType and get over it, because
many other commands have changed (ActivateGadget -> SetActiveGadget),
so there's no point complaining about DefType when dozens of others are
now different too. It's not like the change has broken your code or anything.
Very true. Or just do a search/replace for DefType and get over it, because
many other commands have changed (ActivateGadget -> SetActiveGadget),
so there's no point complaining about DefType when dozens of others are
now different too. It's not like the change has broken your code or anything.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Re: DefType -> Define
Beep_() should be with the B in Uppercase (if Enable Case correction is activated in preferences). But here it leaves in lowcase: beep_()PB wrote:> the IDE don't recognize "EnableExplicit" word, neither "Beep_()"
Confirmed for EnableExplicit, but Beep_() shows up fine for me.
BTW: Should be very nice a .pbi with macros to compatibilize sources from previous PB version. I've no time, but perhaps someone dares to it
Re: DefType -> Define
Psychophanta wrote:Beep_() should be with the B in Uppercase (if Enable Case correction is activated in preferences). But here it leaves in lowcase: beep_()PB wrote:> the IDE don't recognize "EnableExplicit" word, neither "Beep_()"
Confirmed for EnableExplicit, but Beep_() shows up fine for me.
BTW: Should be very nice a .pbi with macros to compatibilize sources from previous PB version. I've no time, but perhaps someone dares to it.
Swap is not being noticed by the IDE either.
@}--`--,-- A rose by any other name ..
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:

