# Do you know some funny inconsistency?

**URL:** <https://ifnotnil.com/t/do-you-know-some-funny-inconsistency/1991>\
**Category:** Other\
**Created:** [23 August 2021 19:57 UTC](https://ifnotnil.com/t/do-you-know-some-funny-inconsistency/1991 "2021-08-23T19:57:44Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![JeffT](https://ifnotnil.com/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@JeffT](https://ifnotnil.com/u/JeffT)\
**Post date:** [24 August 2021 17:44 UTC](https://ifnotnil.com/t/do-you-know-some-funny-inconsistency/1991/21 "2021-08-24T17:44:17Z")

</div>

> [@npalardy](#):
>
> Adding VAR to the grammars is the only real thing I can think of in the years since Joe departed  
> And that one should be trivial

Its literally ‘a word that is identical in every respect to DIM’ (eg also pointless…)  
I wouldnt have been surprised to find the implementation was a quick search and replace before compiling!

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [24 August 2021 19:10 UTC](https://ifnotnil.com/t/do-you-know-some-funny-inconsistency/1991/22 "2021-08-24T19:10:08Z")

</div>

That would be my expectation as well given what I know about the grammar (read that wayyyy too many times)

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [24 August 2021 19:11 UTC](https://ifnotnil.com/t/do-you-know-some-funny-inconsistency/1991/23 "2021-08-24T19:11:50Z")

</div>

This compiles without warning or error but seems REALLY wrong

```auto

Dim i As Integer = &h

Dim c As Color = &c

Dim i2 As Integer = &b 

Dim i3 As Integer = &o

```

i’d expect each needs at least one digit following but that doesnt seem to be the case

[http://feedback.xojo.com/case/65631](http://feedback.xojo.com/case/65631)

edit : stumbled on this with some fubarred code was debugging  
it had stuff like

```auto
select case tag

Case &h // max Len 900 0x25 + 4 bye size
Dim Value As UInt32 = readUint32(offset,data)

Case &h // data field 0x2A + Len Byte + bytes
Dim value As String = readString(offset,data)

Case &h // mouse icon 0x2C + 4 Byte Len + Len bytes 
Dim value As String = readImageData(offset,data)

Case &h // Font change 0x2E + Byte up To 00 Then Font Len + name see Font notes above
Dim value As String = readFontData(offset,data)
ctrl.PropertyValue("TextFont") = Str(value)

Case &h // data source foo 0x29 + Len Byte + bytes
Dim value As String = readString(offset,data)
```

when I was trying to sort out why my code wasnt handling a bunch of cases

EDIT 2 : &u behaves like this as well

[Previous page](https://ifnotnil.com/t/do-you-know-some-funny-inconsistency/1991.md?page=1)
